max min optimization using inbuilt MATLAB function fminimax

6 visualizaciones (últimos 30 días)
Ritaj Chandra Dey
Ritaj Chandra Dey el 28 de Mzo. de 2019
Editada: Catalytic el 28 de Mzo. de 2019
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?

Respuestas (1)

Catalytic
Catalytic el 28 de Mzo. de 2019
Editada: Catalytic el 28 de Mzo. de 2019
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 comentarios
Ritaj Chandra Dey
Ritaj Chandra Dey el 28 de Mzo. de 2019
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 el 28 de Mzo. de 2019
Editada: Catalytic el 28 de Mzo. de 2019
I'm saying that if you only intend to find the optimal x, then the inside negative sign is all that matters.

Iniciar sesión para comentar.

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by