Terminal Weights to nlmpc
16 ビュー (過去 30 日間)
古いコメントを表示
Saskia Putri
2023 年 3 月 3 日
コメント済み: Saskia Putri
2023 年 3 月 8 日
Hello everyone,
I am planning to add terminal weights and terminal constraints to my NMPC code. However, I am not sure how to define the cost function using the standard with additional terminal cost. Can anyone help me with this?
Thank you
Best,
0 件のコメント
採用された回答
Emmanouil Tzorakoleftherakis
2023 年 3 月 3 日
編集済み: Emmanouil Tzorakoleftherakis
2023 年 3 月 8 日
For nonlinear mpc, the easiest way to do that is to use the multistage formulation and block. Then you can set constraints/cost for the final stage to accomplish what you need. Here is an example that you can use as a reference.
You could also do the same with the generic nonlinear MPC formulation that you are currently using, but it is a bit more complex. An example that you can follow is here. Here, you would need to provide constraints and weights as vectors for the entire prediction horizon, for each time step. So you can see how much more convenient the multistage formulation is where you have the flexibility to define cost/constraints at every stage/time step.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Refinement についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!