MPC Reference Dimension Simulink
조회 수: 9 (최근 30일)
이전 댓글 표시

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?
댓글 수: 0
답변 (1개)
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!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Refinement에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!