What kind of optimization algorithm?
Mostra commenti meno recenti
Hi all I want to find maximum of a function that only could be calculated numerically (its gradient or hessian of aren't available). it is something like this: <https://www.dropbox.com/s/bjrrwnkx61o6nqk/untitled.jpg> and i don't mind finding global minimum or local ones (all local maximums are OK) what kind of algorithm do you suggest?
Risposte (2)
Babak
il 20 Mar 2013
0 voti
Stick your numerical data in a vector and then call min(.) or max(.) of that vector. This gives you the global min or max.
3 Commenti
Babak
il 20 Mar 2013
and if you want to find the min or max of the function itself (not the data points) after finding the min or max, do an interpolation or extrapolation to find the right point of the function itself that the min or max happens
Mahdi
il 20 Mar 2013
Babak
il 20 Mar 2013
if the function has ups and downs a lot (the gradient has lots of zeros), then you need to have more data points to be able to detect the min or max. After finding the min or max data point, do an interp1 (if data is 1D) or interp2 (if data is 2D),.. to find more data points near the obtained min or max point. Then run the same algorithm or finding the min or max data point again. Iterate on this procedure up to a point you reach a min acceptable error threshold or reach a min required precision
Sean de Wolski
il 20 Mar 2013
I recommend first trying fmincon() with the interior-point algorithm, If you know that you want a global optimization, then use patternsearch:
doc fmincon
doc optimoptions
doc patternsearch
Categorie
Scopri di più su Solver Outputs and Iterative Display in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!