Borrar filtros
Borrar filtros

how to stop optimization when the function value reach 0?

1 visualización (últimos 30 días)
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 comentario
Geoff Hayes
Geoff Hayes el 13 de Ag. de 2016
Filip - are you using an algorithm from a MATLAB toolbox or something that you have written? Please provide a reference to that code.

Iniciar sesión para comentar.

Respuesta aceptada

Alan Weiss
Alan Weiss el 15 de Ag. de 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 comentario
Nachiketa Chauhan
Nachiketa Chauhan el 5 de Jul. de 2019
@alan
can you provide a more elaborate answer. what do you mean by set stop = true?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surrogate Optimization en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by