필터 지우기
필터 지우기

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 CenterFile Exchange에서 Surrogate Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by