Using Linprog to perform a MaxMin optimization.
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi,
I am trying to solve a MaxMin , 2 player zero-sum game kind of problem using linprog function:
Our Professor, wanted us to use that to come up with the MaxMin solution:
I know how to solve LP using linprog, over single objective functions like this:
Non-matlab compatible form:
max: 2x+5y
s.t : x+y <= 1000
x+5y <= 2000
x>= 0; y >=0;
Change it to a form that linprog likes:
min: -2x-5y
s.t : x+y <= 1000
x+5y <= 2000
x>= 0; y >=0;
f = [-2,-5]
A = [1 1; 1 5]
b = [1000 2000]
xright = linprog(f,A,b)
However, for a MaxMin problem, the objective looks like this:
v = min(-3z1+2z2, z1-z2)
min -v
subject to:
some constraints.
How do I represent V in matlab. There are 2 things under consideration separated by a comma min(-3z1+2z2, z1-z2).
For a normal LP problem, I can do it, without any issues , as there is only onle objective being dealt with.
Thanks
댓글 수: 2
Sulaymon Eshkabilov
2022년 2월 22일
Have you seen this extensive help documentation of MATLAB with a few nice examples: https://www.mathworks.com/help/optim/ug/linprog.html
채택된 답변
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!