MATLAB Answers

how to optimize my ODE system using fmincon

28 views (last 30 days)
Patience Shamaki
Patience Shamaki on 26 Aug 2019
Answered: Alan Weiss on 27 Aug 2019
Hello all, Please I am new to the optimization field. I have an ode system which I have solved and have performed parameter estimation, I am at the steady state optimization step but I do not know how to use fmincon for this purpose. I solved the ODE model using euler explicit method and used EKF for the parameter estimation. My system is my non-linear equality constraint. I want to optimize my input using the parameters I estimated, for solving the ODE my input and uncertain parameters are constant, but I am made to understand that they have to be changing for the optimization step at each Iteration.
I have tried to read and also watch some examples online but all contain just regular equations. Please I need help. I have attached my codes for clarity.


Patience Shamaki
Patience Shamaki on 27 Aug 2019
Okay thanks for the reply and the suggestion. I have read the suggested link, but it doesn,t tell me how to use my ODEs as constraint for the optimization and how I can change my inputs. I am sorry is my question seem off but I am a novice on the field. Thanks

Sign in to comment.

Accepted Answer

Alan Weiss
Alan Weiss on 27 Aug 2019
Take a look at the examples Fit an ODE to Data and Optimize an ODE in Parallel (the latter example uses Global Optimization Toolbox solvers, but you can use fmincon just as well).
Alan Weiss
MATLAB mathematical toolbox documentation


Sign in to comment.

More Answers (0)

Sign in to answer this question.