フィルターのクリア

how to stop optimization when the function value reach 0?

1 回表示 (過去 30 日間)
Filip Hanzely
Filip Hanzely 2016 年 8 月 13 日
コメント済み: Nachiketa Chauhan 2019 年 7 月 5 日
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 件のコメント
Geoff Hayes
Geoff Hayes 2016 年 8 月 13 日
Filip - are you using an algorithm from a MATLAB toolbox or something that you have written? Please provide a reference to that code.

サインインしてコメントする。

採用された回答

Alan Weiss
Alan Weiss 2016 年 8 月 15 日
Use an output function and set stop = true when the function value gets close enough to 0.
Alan Weiss
MATLAB mathematical toolbox documentation
  1 件のコメント
Nachiketa Chauhan
Nachiketa Chauhan 2019 年 7 月 5 日
@alan
can you provide a more elaborate answer. what do you mean by set stop = true?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurrogate Optimization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by