필터 지우기
필터 지우기

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

조회 수: 4 (최근 30일)
Shahab
Shahab 2012년 8월 21일
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
Ryan G
Ryan G 2012년 8월 27일
I don't understand the question. If you have an input it must have limits. If you max out the control input that affects roll you will get the maximum roll rate.
It sounds like what you really want is a control system.
Shahab
Shahab 2012년 8월 30일
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

댓글을 달려면 로그인하십시오.

채택된 답변

Davide Ferraro
Davide Ferraro 2012년 8월 30일
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
Shahab
Shahab 2012년 8월 30일
Thank you, your answer was really useful, it should work. Now, I have another problem, this time in using 'fmincon'. This is my question:
Would you please help me on this one too? tnx
And, I have a third question:
How can I pass an input to my Simulink model when using 'sim' command? Currently, I'm declaring a global variable to pass the input through a Workspace variable.
K E
K E 2012년 9월 4일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Manual Performance Optimization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by