(Need Help) nlmpc (nonlinear model predictive control) in Simulink for code generation
10 views (last 30 days)
I have 'embedded coder' package and addtional support package.
Embedded Coder Support Package for Texas Instruments C2000 Processors:
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.
Sean de Wolski on 2 Nov 2021
The command from MATLAB you'll want to use is nlmpcmoveCodeGeneration
Compute nonlinear MPC control moves with code generation support - MATLAB nlmpcmoveCodeGeneration (mathworks.com)
The Simulink block supports it as well: Simulate nonlinear model predictive controllers - Simulink (mathworks.com)