how-do-i-estimate-or-optimize-the-parameters-of-my-ode-45 system of equations?
1 次查看(过去 30 天)
显示 更早的评论
I have three constitutive equations containing variables which need to be optimised..
How to give the equality constraints in optimisation solver ... (LSQNONLIN, FMINCON} for the following system of equations...
since I am having only three equations with initial conditions..
Finally I want to optimise the variables with experimental data with minimum least squares..
I have attached the function file and executable file using ODE45, equations and experimental data...
Please help me to sort out this problem... Help will be appreciated...
2 个评论
Alan Weiss
2018-12-7
Is this a school assignment?
Alan Weiss
MATLAB mathematical toolbox documentation
回答(1 个)
Alan Weiss
2018-12-10
Sorry, I don't understand what you said. What do you mean you "don't know how to give constraints in the optimisation toolbox for these equations for optimising the variables using different solver (interior point method, levenberg-Marquidt algorithm) and want to compare the least squares errors of the different method?"
- Do you mean you want to pass options to lsqcurvefit to use different algorithms?
- Do you mean that you have linear or nonlinear constraints that don't show in your problem setup so far?
For the first case, just select the 'Algorithm' option using optimoptions and pass the option to the solver. See the example on the function reference page. For the second case, you will need to use a different solver, fmincon, as explained on the optimization decision table.
Alan Weiss
MATLAB mathematical toolbox documentation
2 个评论
Alan Weiss
2018-12-10
I have no idea what you mean "It asks for the constraints for getting solved in optimisation toolbox..." Sorry. If you are getting an error message, please show what you have input and the complete error message. If you mean something else, feel free to ask again.
Alan Weiss
MATLAB mathematical toolbox documentation
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!