Problem #1, MPL Code
!Formulation using MPL
INDEX
DATA
VARIABLES
x1;
x2;
MACROS
MODEL
min -x1;
SUBJECT TO
x1 + x2 -1 <=0;
-x2 <=0;
BOUNDS
FREE
x1 x2;
BINARY
END
! Note: This formulation will produce duals with values -1, -1 (sign convention issue)!
! to get values of 1,1, you should change the constraints to be:
! -x1 - x2 +1 >=0; x2 >=0;