mimo system not working in m.p.c.
3 次查看(过去 30 天)
显示 更早的评论
I am trying to apply mpc to simple inverted pendulum linear model but it was giving me error of dimensionsality in mo, i don't understand what it is kindly help me?
1 个评论
Emmanouil Tzorakoleftherakis
2023-9-28
It is a little hard to provide guidance without seeing how you set up the problem. Can you share your code?
采纳的回答
Sanju
2023-11-24
The error message you are seeing is likely due to a mismatch in the dimensions of the manipulated output (mo) and the control signal. Make sure that the dimensions of these signals match in your MPC controller block in Simulink.
Here are some general steps you can follow to troubleshoot this issue:
- Check the dimensions of the “mo” and control signals in your “MPC controller block”. They should match.
- Make sure that the plant model you are using in the “MPC controller block” has the correct dimensions.
- Check that the weights and constraints in the “MPC controller block” are set up correctly.
If you are still having trouble, you can try simplifying your model or starting with a working example to make sure that the issue is not with your “MPC controller block”.
If you need any further assistance, please share the code for your system.
Hope this Helps!
Thanks.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model Predictive Control Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!