Objective function with summation

조회 수: 4 (최근 30일)
SANDEEP SURAVARAPU
SANDEEP SURAVARAPU 2021년 5월 28일
댓글: SANDEEP SURAVARAPU 2021년 5월 28일
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
Torsten
Torsten 2021년 5월 28일
편집: Torsten 2021년 5월 28일
B is (2x1) - so u is a scalar for each t ?
How big is N ? x0 is a given 2x1 vector ?
SANDEEP SURAVARAPU
SANDEEP SURAVARAPU 2021년 5월 28일
@Torsten yes u is scalar for each t.
let me re-write the problem in clearer way :

댓글을 달려면 로그인하십시오.

채택된 답변

Torsten
Torsten 2021년 5월 28일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Refinement에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by