Objective function with summation
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
SANDEEP SURAVARAPU
il 28 Mag 2021
Commentato: SANDEEP SURAVARAPU
il 28 Mag 2021
I want to solve an MPC problem in matlab using fmincon function.
Im having hard time in figuring it out the way to write the objective function . Minimization is only wrt u ( x(t+1) = Ax(t)+Bu(t) )
Could someone please help else guide me to relevant sources
5 Commenti
Risposta accettata
Torsten
il 28 Mag 2021
Choose u_0,...,u_N as unknowns.
In the objective function, calculate x_1,...x_(N+1) from A and u_0,...u_N.
Return u_0^2 + ... + u_N^2 + x_1.'*x_1 + ... + x_(N+1).'*x_(N+1)
That's all.
No constraints are necessary.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Refinement in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!