Optimization Using FMINCON and ODE45
12 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
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
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!