how to choose the alternate cost function in MPC command line window? and can we know which cost function MPC block is considering?

5 ビュー (過去 30 日間)
hi
I'm using the MPC for reference tracking and able to see the value of cost function. but I'm unable to check the type of cost function used by the block and unable to change it to alternative cost function..can we include new cost function?
will you please suggest me.. your suggestions will be helpful to me a lot
thank you....

採用された回答

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2023 年 2 月 20 日
By default, MPC controller will use the standard cost. If you want to use the alternate cost, you can see how to do it in this example.
  3 件のコメント
Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2023 年 2 月 23 日
Mpcmove command will automatically use the alternate cost when you provide the weights as mentioned. No need to do anything additional

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by