Optimization Using FMINCON and ODE45

5 次查看(过去 30 天)
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