フィルターのクリア

Is there any way to graph the MPC cost function?

5 ビュー (過去 30 日間)
Milad Shojaee
Milad Shojaee 2023 年 10 月 25 日
Hello, I want to graph the MPC cost function and see how it converges. Does MPC object give you the information about the cost function data? How about MPC designer App? Is there any section in which I can see the cost function convergence graph? Thanks
  1 件のコメント
Sam Chak
Sam Chak 2023 年 10 月 25 日
Do you have the mathematical formula for the MPC cost function? If the formula is a mathematical function of the states and inputs, , then I believe you can manually plot it out with plot(t, J). Have you tried that?

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

回答 (1 件)

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis 2023 年 10 月 27 日
If you are designing the controller in MATLAB, all 'move' functions have an info argument which containts the cost value (see here).
Same goes for the blocks in Simulink, see for example here.

カテゴリ

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