How can I resolve the "incorrect size of expression 'xpoff': expected [:?x1] but found [1x0]." error for designing MPC using the MPC toolbox in Simulink?

3 views (last 30 days)
When I connect Tdot to mo and connect mv to T, I can get MPC results.
However, when I connect P to mo and connect mv to Tset or connect m to mo and connect mv to m, I get the "incorrect size of expression 'xpoff': expected [:?x1] but found [1x0]." error
Any ideas?
MPC example.jpg

Answers (1)

Gati Miloud
Gati Miloud on 15 Oct 2021
Has anyone found a solution to this problem?

Categories

Find more on Model Predictive Control Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!