How to use fminimax

조회 수: 2 (최근 30일)
rafaelcxc
rafaelcxc 2018년 11월 2일
편집: Bruno Luong 2018년 11월 2일
Hello, I would like to use fminimax to solve the following problem. Could someone help me please?
My f(x,w,y,z) is quite complex, so lets say it is just f=x+w+y+z
My main question is how to use fminimax, because I have only one function, but using MIN with y,z and MAX with x,w. I have tried this code for my function:
function f = myfun(x)
f(1) = x(1)+x(2)
f(2) = x(3)+x(4)
end
[x,fval] = fminimax(@myfun,...)
However, it looks quite wrong. Even using just f = x(1)+x(2)+x(3)+x(4) it doen't seems right.
Mathworks documentation is poor for this command: https://www.mathworks.com/help/optim/ug/fminimax.html
PS.: I am trying to use robust optmization to solve a planning problem.
Thanks for any help!

답변 (1개)

Bruno Luong
Bruno Luong 2018년 11월 2일
편집: Bruno Luong 2018년 11월 2일
I believe for FMINIMAX the inner-max (min for your case) is performed on discrete set of variables, which corresponds the length of output vector F of the user FUN.
In your case since you have continuous inner-min, so I guess FMINIMAX not directly applicable.

카테고리

Help CenterFile Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기

제품


릴리스

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by