How do we solve multiple ODEs to fit empirical observations by optimizing multiple constants?

1 view (last 30 days)
I have 3 ODEs and 2 parameters to be optimized to fit the ODE's to given data..
eg dA/dt = -(K1+K2)*A;
dB/dt = K1*A;
dC/dt = K2*A
where t= time and K1,K2 are constants
I have been given A,B and C vs time data..I must manipulate K1 and K2 to match the data. How do I go about doing this using optimization toolbox? Please suggest a sample code if possible..
  2 Comments
Teja Muppirala
Teja Muppirala on 21 Aug 2012
Hi Nitin, I provided an answer on the original question that you posted a while back.
If you don't feel like you've gotten a good answer when you previously asked a question, it is generally a better idea to go back and ask for more clarification, or provide more information, instead of starting a new post with the same question again. That way, all the information and previous conversation regarding your problem will stay on one page.
Nitin Samuel
Nitin Samuel on 21 Aug 2012
Edited: Nitin Samuel on 21 Aug 2012
sorry!! i didnt get a notification that you replied.will see that now..will remove this asap..

Sign in to comment.

Answers (1)

Elizabeth
Elizabeth on 21 Aug 2012
Set each ODE equal to zero on the RHS and minimize the difference between the two terms on the LHS for each of your ODEs to be optimized [subject to your constraints].

Categories

Find more on Get Started with Optimization Toolbox 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!