필터 지우기
필터 지우기

Optimization Using FMINCON and ODE45

조회 수: 5 (최근 30일)
rash@KL
rash@KL 2014년 7월 22일
댓글: rash@KL 2014년 7월 28일
Hi, I am trying to use FMINCON for obtaining the optimal parameters of a suspension system which is written into MATLAB m.file as equations of motion. I have a main file which specifies the initial guess for the parameters, lower bounds and upper bounds. My objective m.file uses ODE45 to solve a set of equations and derives the parameter (relative displacement) which is a vector. I have to constrain the relative displacement to a value below 0.044m to obrain the parameters x(1), x(2)...x(5) which are the co-efficients used in the equations of motion. I have the main file, objective file and the equations of motion ready. My question is how to write the non-linear constraint for the above problem in order to get the parameters x(1)...x(5) with the relative displacement constrained.
Any help in this regards will be of great help
Thanks in advance.

채택된 답변

Alan Weiss
Alan Weiss 2014년 7월 23일
You might find this example on optimizing an ODE to be helpful. The example uses patternsearch and ga, but works fine for fmincon as well.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 1
rash@KL
rash@KL 2014년 7월 28일
Hi Alan, thanks for the reply. FMINCON seems to working now. But I still have some issues obtaining the optimal parameters. I will post the issue in a few days if it is still unresolved.
Thanks

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by