Problem of complex solution combining lsqnonlin solver with ode45
Show older comments
I'm developing a kinetic model that has to fit some experimental data. The expression for the reaction rates are based on 8 parameters.
I'm using ode45 to integrate the system of ODEs and lsqnonlin to tune the 8 parameters minimising the error with the experimental data.
The moodel is way too dependent on the first guess and it is not possible to add some constrains to the parameters.
Running the code I'm obtaining complex solutions from the ODE system and, as a result, the model does not converge.
Thanks in advance!
Accepted Answer
More Answers (0)
Categories
Find more on General Applications 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!