How to solve differential equations with parameters using fmincon to find out optimized parameters
Show older comments
Hello, I need to find out the optimized two parameter(a and b) to make minimum of (f2+f1-0.576). What I have is the differential equations of f1,f2,and f3.
for example, f1'=3*a/b*f2*f1+16*(f3-f1) f2'=-3*a/b*f2*f1+(f3-f1) f3'= 5*a/b*f1+(f2+f3) f1(0)=f2(0)=f3(0)=1 and f2(1)+f1(1)=0.576 for 0<-x<-1. The ranges of parameters are 0<-a<-10 and 100<-b<-1000.
And I want to use fmincon to optimize a and b to make minimum of (f2(1)+f1(1)-0.576). I can solve the differential equations with the fixed a and b. But I don't know how to find out the optimized a and b. My fmincon equation is, [x,f]=fmincon (@myfun,...)
F=myfun (x,a,b) F=f2(1)+f1(1)-0.576
In F equation, there is no a or b, so I can not set the initial,Ub, or Lb for a and b in fmincon. Actually, I don't know how to solve the differential equations with ode45 without a and b now. Can anyone help me to solve the equation? Thank you in advance.
Accepted Answer
More Answers (0)
Categories
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!