search
UMD  This Site




!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;

 


 

Additional Resources

Problem 1 Home

Problem 1 Matlab Code

Probem 1 MPL Code

Problem 1 Excel

Problem 1 LINDO Code

Teaching Home




Copyright 2011
Civil Engineering Home Applied Mathematics UMD UMD