How to use fminimax
조회 수: 2 (최근 30일)
이전 댓글 표시
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!
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!