Linear Programming (LP) Problem
Linear Programming (LP) Problem
Slide
1
LP Solutions
Slide
2
Problem Formulation
Slide
3
Guidelines for Model Formulation
Slide
4
Example 1: A Maximization Problem
LP Formulation
s.t. x1 < 6
2x1 + 3x2 < 19
x1 + x2 < 8
x1, x2 > 0
Slide
5
Example 1: Graphical Solution
Constraint #1 Graphed
x2
8
6
x1 < 6
5
1 (6, 0)
1 2 3 4 5 6 7 8 9 10
x1
Slide
6
Example 1: Graphical Solution
Constraint #2 Graphed
x2
8 (0, 6 1/3)
7
4
3
2
(9 1/2, 0)
1
1 2 3 4 5 6 7 8 9 10
x1
Slide
7
Example 1: Graphical Solution
Constraint #3 Graphed
x2
(0, 8)
8
6
x1 + x2 < 8
5
1 (8, 0)
1 2 3 4 5 6 7 8 9 10
x1
Slide
8
Example 1: Graphical Solution
Combined-Constraint Graph
x2
8
x1 + x2 < 8
7
6
x1 < 6
5
2
2x1 + 3x2 < 19
1
1 2 3 4 5 6 7 8 9 10
x1
Slide
9
Example 1: Graphical Solution
2 Feasible
1
Region
1 2 3 4 5 6 7 8 9 10
x1
Slide
10
Example 1: Graphical Solution
7
(0, 5)
6
5 5x11 + 7x22 = 35
4
1
(7, 0)
1 2 3 4 5 6 7 8 9 10
x1
Slide
11
Example 1: Graphical Solution
Optimal Solution
x2
8
5x11 + 7x22 = 46
7
5
Optimal Solution
4
1 2 3 4 5 6 7 8 9 10
x1
Slide
12
Summary of the Graphical Solution Procedure
for Maximization Problems
Prepare a graph of the feasible solutions for each of the
constraints.
Determine the feasible region that satisfies all the
constraints simultaneously..
Draw an objective function line.
Move parallel objective function lines toward larger
objective function values without entirely leaving the
feasible region.
Any feasible solution on the objective function line with
the largest value is an optimal solution.
Slide
13
Slack and Surplus Variables
Slide
14
Example 1
Standard Form
s.t. x1 + s1 = 6
2x1 + 3x2 + s2 = 19
x1 + x2 + s3 = 8
x1, x2 , s1 , s2 , s3 > 0
Slide
15
Extreme Points and the Optimal Solution
Slide
16
Example 1: Graphical Solution
7
5
6
3
4
2 Feasible 3
1
Region
1 2
1 2 3 4 5 6 7 8 9 10
x1
Slide
17
Computer Solutions
Slide
18
Interpretation of Computer Output
Slide
19
Example 1: Spreadsheet Solution
A B C D
1 LHS Coefficients
2 Constraints X1 X2 RHS Values
3 #1 1 0 6
4 #2 2 3 19
5 #3 1 1 8
6 Obj.Func.Coeff. 5 7
Slide
20
Example 1: Spreadsheet Solution
A B C D
8 Optimal Decision Variable Values
9 X1 X2
10 5.0 3.0
11
12 Maximized Objective Function 46.0
13
14 Constraints Amount Used RHS Limits
15 #1 5 <= 6
16 #2 19 <= 19
17 #3 8 <= 8
Slide
21
Example 1: Spreadsheet Solution
Slide
22
Reduced Cost
Slide
23
Example 1: Spreadsheet Solution
Reduced Costs
Adjustable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$B$8 X1 5.0 0.0 5 2 0.333333333
$C$8 X2 3.0 0.0 7 0.5 2
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$B$13 #1 5 0 6 1E+30 1
$B$14 #2 19 2 19 5 1
$B$15 #3 8 1 8 0.333333333 1.666666667
Slide
24
Example 2: A Minimization Problem
LP Formulation
x1, x2 > 0
Slide
25
Example 2: Graphical Solution
Slide
26
Example 2: Graphical Solution
Constraints Graphed
3
2x11 + 5x22 > 10
2
1
x11
1 2 3 4 5 6
Slide
27
Example 2: Graphical Solution
Slide
28
Example 2: Graphical Solution
3
2x11 + 5x22 > 10
2
1
x11
1 2 3 4 5 6
Slide
29
Example 2: Graphical Solution
Slide
30
Example 2: Graphical Solution
Optimal Solution
Slide
31
Example 2: Spreadsheet Solution
Slide
32
Example 2: Spreadsheet Solution
Slide
33
Example 2: Spreadsheet Solution
Slide
34
Feasible Region
Slide
35
Special Cases
Slide
36
Example: Infeasible Problem
x1, x2 > 0
Slide
37
Example: Infeasible Problem
8 2x1 + x2 > 8
x1
3 4
Slide
38
Example: Unbounded Problem
s.t. x1 + x2 > 5
3x1 + x2 > 8
x1, x2 > 0
Slide
39
Example: Unbounded Problem
3x1 + x2 > 8
8
Max 3x1 + 4x2
5
x1 + x2 > 5
x1
2.67 5
Slide
40