Session 03: - Special Conditions in LP Models - Spreadsheet Solvers - Guidelines For Spreadsheet Design
Session 03: - Special Conditions in LP Models - Spreadsheet Solvers - Guidelines For Spreadsheet Design
• Spreadsheet solvers
100
0
0 50 100 150 200 250 X1
Example of a Redundant Constraint Max. 350X1 + 300X2
X2 Subject to:
1X1 + 1X2 ≤ 225;
250 9X1 + 6X2 ≤ 1566;
boundary line of tubing constraint 12X1 + 16X2 ≤ 2880;
1X1 ≥ 0
200 1X2 ≥ 0
boundary line of pump constraint
Feasible Region
50
0
0 50 100 150 200 250 X1
Example of an Unbounded Solution Max. X1 + X2
X2 Subject to:
X1 + X2 ≥ 400;
1000 objective function -X1 + 2X2 ≤ 400;
X1 + X2 = 600 -X1 + 2X2 = 400
X1 ≥ 0
800 X2 ≥ 0
objective function
X1 + X2 = 800
600
400
200
X1 + X2 = 400
0
-400 0 200 400 600 800 1000 X1
Example of Infeasibility
X2 Max. X1 + X2
250
Subject to:
X1 + X2 ≤ 150;
200 X1 + X2 >= 200 X1 + X2 ≥ 200;
feasible region for
X1 ≥ 0
150 second constraint X2 ≥ 0
100
feasible region
50 for first constraint
X1 + X2 <= 150
0
0 50 100 150 200 250 X1
Modeling and Solving LP
Problems in a Spreadsheet
Solving LP problems graphically is only
possible when there are two decision
variables
Spreadsheet
Solvers
Other packages for solving MP problems:
Reserve
• separate cells in the spreadsheet for each decision variable in the
model.
• Organize the data, then build the model around the data.