How can I get the final value of the cost function from MPC block?
9 views (last 30 days)
Show older comments
Hi everybody,
As the MPC control action is obtained by solving the optimization problem, my question is how can I get the final value the cost function after the minimizing procedure is finish?
Secondly, how can I minimize a variable which it is not a measured output?
Thanks in advanced
0 Comments
Accepted Answer
Arkadiy Turevskiy
on 19 Mar 2014
1. Optimal cost is an optional block output as explained in the reference document, just search this page for "optimal cost".
2. For the unmeasured outputs, you can specify constraints just as you do for measured ones, see this example .
3 Comments
Arkadiy Turevskiy
on 20 Mar 2014
What do you mean exactly when you say "can't any more linearize Simulink model"? What error message are you getting exactly?
More Answers (0)
See Also
Categories
Find more on Refinement in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!