how to optimize my ODE system using fmincon

34 ビュー (過去 30 日間)
Patience Shamaki
Patience Shamaki 2019 年 8 月 26 日
回答済み: Alan Weiss 2019 年 8 月 27 日
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 https://www.mathworks.com/help/optim/ug/nonlinear-equality-and-inequality-constraints.html and also watch some examples online but all contain just regular equations. Please I need help. I have attached my codes for clarity.
  2 件のコメント
David Wilson
David Wilson 2019 年 8 月 27 日
It sounds like you also need to read:
Also, I'd drop the Euler scheme, and use ode45 or similar.
Patience Shamaki
Patience Shamaki 2019 年 8 月 27 日
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

サインインしてコメントする。

採用された回答

Alan Weiss
Alan Weiss 2019 年 8 月 27 日
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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by