Optimization algorithm into MATLAB
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I have to couple Dymola with an optimization algorithm into Matlab.
Real Consumption data measured draw a continuous nonlinear function that it cans be loaded into Matlab. Moreover there is a parameter in Dymola between 5000 and 10000. The parameter takes a value in that range and after the simulation in Dymola the results are returned.
The objective is to find the best value in the range to fit the returned results to the real consumption data measured.
Which method is the best one? I tried it with lsqcurvefit but my objective function is a script.
Thanks in advance.
I can´t find the best solution for my problem.
0 commentaires
Réponses (2)
Kye Taylor
le 14 Jan 2013
lsqcurvefit is a good candidate... whatever you choose, you'll need your objective to be written as a function
0 commentaires
Shashank Prasanna
le 14 Jan 2013
It looks like you are trying to fit an ODE. I suggest going through the following article: http://www.mathworks.com/help/optim/ug/optimizing-a-simulation-or-ordinary-differential-equation.html
If you objective is a script you can convert it into a function that takes in the independent vector variable x and return the function or objective values y
f_scalar = F(x_vector)
After which you can try all the solvers mentioned in the above link.
0 commentaires
Voir également
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!