Effacer les filtres
Effacer les filtres

how to stop optimization when the function value reach 0?

1 vue (au cours des 30 derniers jours)
Filip Hanzely
Filip Hanzely le 13 Août 2016
I am using patternsearch algorithm to find minimum of a function (area of intersection of some objects). I know that the minimum cannot be less than 0, thus I want to stop when the function value is 0. How to do it?
  1 commentaire
Geoff Hayes
Geoff Hayes le 13 Août 2016
Filip - are you using an algorithm from a MATLAB toolbox or something that you have written? Please provide a reference to that code.

Connectez-vous pour commenter.

Réponse acceptée

Alan Weiss
Alan Weiss le 15 Août 2016
Use an output function and set stop = true when the function value gets close enough to 0.
Alan Weiss
MATLAB mathematical toolbox documentation
  1 commentaire
Nachiketa Chauhan
Nachiketa Chauhan le 5 Juil 2019
@alan
can you provide a more elaborate answer. what do you mean by set stop = true?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Surrogate Optimization 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!

Translated by