![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1521186/image.png)
Is there any way to graph the MPC cost function?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Sam Chak
am 25 Okt. 2023
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1521186/image.png)
Antworten (1)
Siehe auch
Kategorien
Mehr zu Refinement finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!