Linear Programming
Linear Programming
Solution:
The region consists of the line y = 5
and with the half-plane below it.
Example 3 – Solving a System of Linear Inequalities
Z A 30 0 0
Z B 34 0 12
Z C 33 2 11
Z D 30 4 4
Maximize Z = 2x + 4y subject x 4 y 8
to the constraints x 2y 16
Solution: x, y 0
The region is nonempty and bounded.
Z A 20 42 8
Z B 28 44 32 (max)
Z C 20 48 32 (max)
The Simplex Method
x1 x 2 20
Maximize Z 5 x1 4 x2 subject to 2 x1 x 2 35 and x 1, x2 ≥ 0.
3 x x 12
1 2
Solution:
B x1 x2 s1 s2 s3 Z R B x1 x2 s1 s2 s3 Z R
s1 1 1 1 0 0 0 20 x2 0 1 2 1 0 0 5
s2 2 1 0 1 0 0 35 x1 1 0 1 1 0 0 15
s3 3 1 0 0 0 0 12 s3 0 0 5 4 1 0 52
Z 5 4 0 0 0 1 0 Z 0 0 3 1 0 1 95
Degeneracy
• A basic feasible solution (BFS) is degenerate if one of the basic variables
is 0.
Unbounded Solutions
• An unbounded solution occurs when the objective function has no
maximum value.
Multiple Optimum Solutions
• Multiple (optimum) solutions occur when there are different BFS.
Example 1 – Unbounded Solution
5 x1 6 x 2 2 x3 30
Maximize Z x1 4 x 2 x3subject to x1 3 x 2 6 x3 12
x1, x 2 , x3 0
Solution:
B x1 x2 s1 s2 s3 Z R B x1 x2 s1 s2 s3 Z R
s1 - 5 6 - 2 1 0 0 30 s1 - 3 0 - 14 1 - 2 0 6
s2 - 1 3 6 0 1 0 12 x2 - 13 1 2 0 13 0 4
Z - 1 - 4 - 1 0 0 1 0 Z - 73 0 9 0 43 1 16
Since the 1st two rows of the x1-column are negative, no quotients
exist.
Hence, it has an unbounded solution.
Artificial Variables
x1 2 x 2 s2 20
x1 x 2 s3 t 2
Consider an artificial objective equation,
2 x1 x 2 Mt W 0
Construct a Simplex Table,
B x` x2 s1 s2 s3 t W R B x` x2 s1 s2 s3 Z R
s1 1 1 1 0 0 12
0 0 s1 1 0 1
2 0 1
2 0 5
s2 1 2 0 1 0 0 0 20 0 32 0 1
s 2 0 1 1
2
t 1 1 0 0 1 1 0 2 t 0 1 1
0 12 0 7
2
W 2 M 1 M 0 0 M 0 1 2M
W 0 0 3
2 0 1
2 1 17
x1 x2 1
x ,x 0
1 2
Solution:
Construct a Simplex Table,
B x1 x2 s1 s2 t1 W R
t1 1 1 1 0 1 0 2 B x1 x2 s1 s2 t1 W R
s2 1 1 0 1 0 0 1 t1 2 0 1 1 1 0 1
W 2 M 1 M M 0 0 1 2M s2 1 1 0 1 0 0 1
W 1 2M 0 M 1 M 0 1 1 M
Example 1 – Minimization
2 x1 x 2 1
Minimize Z x1 2x 2 subject to x1 x2 2
x ,x 0
Solution: 1 2
Construct a Simplex Table,
B x1 x2 s1 s2 t1 t 2 W R B x1 x 2 s1 s2 t1 t2 W R
t1 2 1 1 0 1 0 0 1 t1 1 1 0 1 0 1 0 2
t 2 1 1 0 1 0 1 0 2 t 2 1 0 1 1 1 1 0 1
W 1 3M 2 2M M M 0 0 1 3M W 3 0 0 2 M 2 M 1 4
Solution: 3 x1 x 2 2
The dual is minimize W 10 y 1 10 y 2subject to x1 x 2 1
4 x x 3
1 2
where y 1, y 2 0
Example 3 – Applying the Simplex Method to the Dual
Solution: 3y1 y 2 4
y y 1
The dual is minimize W 4 y1 2 y2 subject to 1 2
y 1 y 2 1
The final Simplex Table is B y 1 y 2 s1 s2 s3 W R
y2 0 1 41 0 34 0 1
4
s2 0 0 21 1 21 0 5
2
y1 1 0 41 0 41 0 5
4
The minimum value of W is 11/2 . W 0 0 32 0 21 1 11
2
Bibliography and further readings
• Haeussler, E. F., Paul, R. S. & Wood, R. J. (2015). Matemáticas para
administración y economía: Pearson Educación. (Textbook)
• Anderson, D. R., Sweeney, D. J., Williams, T. A., Camm, J. D., &
Cochran, J. J. (2015). Quantitative Methods for Business: Cengage
Learning