How can I find the optimum input to a Simulink model?

8 views (last 30 days)
I have a big Simulink model. I want to find the input to the system (which is a time series) that will maximize the output (which is another time series, like any other Simulink model).
Which command or toolbox should I use and how? Optimization toolbox, Neural networks, Fuzzy, Genetic algorithm?
  6 Comments
Shahab
Shahab on 30 Aug 2012
Dear Mariano, The parameter 'fun' in the syntax x = fmincon(fun,x0,A,b) is a Simulink model in my case. I've searched a bit more and I've come to some conclusions. I hope it works.
Dear Ryan, No the dynamics is highly nonlinear and is not simple such that when you apply the maximum steer, the vehicle roll most; actually some really harsh steering input such as an evasive maneuver is required to induce rollover.
Thanks for your answers

Sign in to comment.

Accepted Answer

Davide Ferraro
Davide Ferraro on 30 Aug 2012
Hi,
as Mariano was suggesting you may consider using an optimization algorithm and run the Simulink model in your objective function. You can use the SIM command to run the simulation from the code with your different input vector. To understand what's the appropriate optimization function you need to consider which type of problem you are solving (as previously suggested FMINCON and FMINUNC are good starting points).
You may also consider using Simulink Parameter Estimation (offered in Simulink Design Optimization) to setup the optimization process directly in Simulink (although if you're extensively working with timeseries you may find it quicker to write all the code in MATLAB for your optimization routine).
  2 Comments
K E
K E on 4 Sep 2012
You might want to post a separate question for #3 since it is not related to your original question, which you have already accepted an answer for so people will not tend to read this far.

Sign in to comment.

More Answers (0)

Categories

Find more on Manual Performance Optimization 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!

Translated by