max min optimization using inbuilt MATLAB function fminimax

6 次查看(过去 30 天)
How to use fminimax in the max-min optimization? I am confused with the outside negative sign that has to be incorporated in min-max formulation such that max-min optimization problem can be solved using "fminimax". How to include the outside negative sign in my code? The inside negative sign can be taken care of by making the cost function negative. But what about the outside negative sign, how to include that in the code?

回答(1 个)

Catalytic
Catalytic 2019-3-28
编辑:Catalytic 2019-3-28
The outside negative sign only matters if you care about calculating the optimal fval
[x,fval] = fminimax(------)
fval=-fval;
and not just the optimal x.
  2 个评论
Ritaj Chandra Dey
Ritaj Chandra Dey 2019-3-28
Thank you for the reply. You mean to say that if I only intend to find optimal x then outside negative sign can be removed.
Catalytic
Catalytic 2019-3-28
编辑:Catalytic 2019-3-28
I'm saying that if you only intend to find the optimal x, then the inside negative sign is all that matters.

请先登录,再进行评论。

类别

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