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.
  1 件のコメント
SANDEEP SURAVARAPU
SANDEEP SURAVARAPU 2021 年 5 月 28 日
Thanks, this helps

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRefinement についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by