Optimization Using FMINCON and ODE45

12 views (last 30 days)
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.

Accepted Answer

Alan Weiss
Alan Weiss on 23 Jul 2014
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 Comment
rash@KL
rash@KL on 28 Jul 2014
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

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!