fminbnd got stock in local minimum: can global search deal with the problem defined by cases?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
alpedhuez
am 5 Aug. 2020
Bearbeitet: Walter Roberson
am 5 Aug. 2020
I plot the value of a function over the possible values and also run fminbnd. I find out that fminbud got stuck in a local minimum. As a next step I would consider global optimization toolbox. Can they handle function defined by cases?
0 Kommentare
Akzeptierte Antwort
Alan Stevens
am 5 Aug. 2020
Narrow the allowed search interval. If you've plotted the function you should be able to get a good idea of where the global minimum lies.
3 Kommentare
Alan Stevens
am 5 Aug. 2020
Perhaps. I've no knowledge of patternsearch so can't really comment. An alternative might be to adopt something like a particle swarm optimisation (PSO) approach, for which there are several routines to be found in the File Exchange.
Weitere Antworten (1)
Walter Roberson
am 5 Aug. 2020
Bearbeitet: Walter Roberson
am 5 Aug. 2020
fminbnd() cannot handle functions defined by cases. None of the functions in the Optimization toolbox can: they all depend upon the function having continuous first derivatives (an some of them depend upon the function also having continuous second derivatives.)
The optimization functions that can work on functions that are defined by cases are: ga(), gamultiobj(), patternsearch(), particleswarm(), simulannealbnd()
0 Kommentare
Siehe auch
Kategorien
Mehr zu Surrogate Optimization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!