Fmincon and fminimax as optimisers

조회 수: 5 (최근 30일)
serge ayao
serge ayao 2020년 4월 29일
댓글: serge ayao 2020년 4월 30일
How well does fmincon work was as an optimiser for a bounded function with no inequality constraints compared to the fminimax. And why would one be better than the other.

채택된 답변

Walter Roberson
Walter Roberson 2020년 4월 29일
fminimax() is for objective functions that return non-scalars and you want to minimize the maximum of the non-scalar values returned.
fmincon() can only handle functions that return scalar values.
You might think of using @(x) max(YourNonScalarFunction(x)) with fmincon, but max() is not a continuous function, and fmincon() is only designed for continuous functions.
For the case of a function that returns a scalar and has the needed continuity, fmincon() would be expected to be more efficient.
  댓글 수: 1
serge ayao
serge ayao 2020년 4월 30일
Thank you, this explanation has helped me out a lot

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by