(Need Help) nlmpc (nonlinear model predictive control) in Simulink for code generation
10 views (last 30 days)
Show older comments
Changwoo Lee
on 2 Nov 2021
Commented: Changwoo Lee
on 2 Nov 2021
I have 'embedded coder' package and addtional support package.
Embedded Coder Support Package for Texas Instruments C2000 Processors:
https://kr.mathworks.com/matlabcentral/fileexchange/43096-embedded-coder-support-package-for-texas-instruments-c2000-processors?tab=discussions
Does this support package include the "nonlinear model predictive control" block in Simulink and "nlmpc" command in Matlab?
I wish to use the code generation and to embed 'nlmpc' command into the target hardware for the real-time control.
I eagerly await reply.
0 Comments
Accepted Answer
Sean de Wolski
on 2 Nov 2021
The command from MATLAB you'll want to use is nlmpcmoveCodeGeneration
The Simulink block supports it as well: Simulate nonlinear model predictive controllers - Simulink (mathworks.com)
More Answers (0)
See Also
Categories
Find more on Simulink Coder 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!