Optimization algorithm in simulink

7 views (last 30 days)
Nils
Nils on 28 Jul 2012
Hello!
I'm intending to implement a nonlinear MPC in Simulink and so I was about to write my own optimization routine as a Simulink "Matlab function" using only functions supported by Simulink code generation. Before I embark on such a task I just wanted to ask the community to make sure there wasn't any already existing implementations of constrained optimization routines for use in Simulink. As far as I can see, only fzero is supported by simulink, which is of little use in my case.
Thank you so much in advance!

Answers (1)

Elizabeth
Elizabeth on 28 Jul 2012
I don't know if this will be useful to you or not but there is a series of tutorials and files for mpc & simulink in the file exchange directory. The first of the tutorials can be located with the following link :
good luck.
  1 Comment
Nils
Nils on 28 Jul 2012
Thank you so much for your response! Unfortunately do the links only provide either examples with unconstrained MPC so that the solution can be obtained explicitly and analytically or they make use of optimization algorithms from the optimization toolbox not for use in simulink. I was essentially looking for an optimization algorithm for use in simulink that allows at least nonlinear inequality constraints.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!