MPC Reference Dimension Simulink

9 次查看(过去 30 天)
Tristan
Tristan 2025-8-8
回答: Vanita 2025-8-11
I am getting an error stating that the reference should have 12 columns, but when I turn on the dimension, it is clear that the reference does indeed have 12 values. What is the issue here?

回答(1 个)

Vanita
Vanita 2025-8-11
Hi Tristan,
From the error you encountered it seems like the reference signal isn’t in the right format for the Nonlinear MPC block, it should be an array where the number of columns matches the number of output variables the controller is tracking (12 columns). Adding a Transpose block between the Step block and the ref input of the Nonlinear MPC block can match the required input format.
For more information you can refer to https://www.mathworks.com/help/mpc/ug/nonlinear-mpc.html
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Refinement 的更多信息

产品


版本

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by