OR - Chapter 2, Linear Programming
OR - Chapter 2, Linear Programming
2
Structure and characteristics of LPM
3
Solution approaches to LPM
4
Graphical approach: Example 1
5
Graphical approach: Example 2
6
Simplex approach
7
Example: Simplex approach 3
8
Example: Simplex approach
• What will happen if our constraint is with > sign? This excess amount is
referred to as Surplus. This surplus amount is subtracted from the left side
of the constraint function to put it in standard form.
• Surplus variables are expressed in exactly the same way as slack variables.
They are assigned coefficients of zero.
• By subtracting the surplus, the constraint becomes equality. Therefore, to
allow for the initial solution that will be less than that amount, an artificial
variable must be added.
• we don’t want the artificial variables to appear in the final solution because
they are not real variables.
• In a maximization problem, we assign a large negative number denoted by
M to facilitate the solution.
• In a minimization problem, we assign a large positive number to be the
coefficient of the artificial variable. 9
Example: Simplex approach
1. If there is a tie between two decision variables, then the selection can
be made arbitrary.
2. If there is a tie between a decision variable and a slack (or surplus)
variable, then select the decision variable to enter into basis first.
3. If there is a tie between slack or surplus variable, then selection can
be made arbitrary.
4. When there is a tie between a slack and artificial variable to leave the
basis, the preference shall be given to artificial variable to leave the
basis and there is no need to apply the procedure for resolving such
cases.
10
Example: Simplex approach
2
1
Area of feasibility
for constraint 1
12
Some Special Issues of LPM
X2
An unbounded solution space
X1
13
Some Special Issues of LPM
C 10 6 7 0 RHS
Basis X1 S1 S1 S2 values
X2 0 0 1 -1 2 5
X1 10 1 0 -2 2 4
Z 2 3 -7 10 23
C- Z 0 0 7 - 10
Redundant Constraint
Second
constraint
First
constraint
15
Some Special Issues of LPM
Optimal line
segment
Objective function
16
Some Special Issues of LPM
Degeneracy
Normally we can identify the leaving and entering variables and make
the appropriate replacement. I n some cases however, when you are
determining the leaving variable, there may be a tie for the lowest
positive ratio. Such a case is known to be the case of degeneracy. I f
you try to generate the next tableau by just taking any one variable
with the least ratio, you encounter no problem in the procedure but
there will be no improvement in the solution (level of the objective
function); it will rather be the same as the previous solutions. 18
POST OPTIMALITY ANALYSIS
19
POST OPTIMALITY ANALYSIS
C 60 50 0 0 0 RHS
Basis X1 X2 S1 S2 S3 values
S1 0 0 0 1 6 -16/3 24
x1 60 1 0 0 1 -1/3 9
x2 50 0 1 0 -1 2/3 4
Z 60 50 0 10 40/3 740
C-Z 0 0 0 -10 -40/3
22
Sensitivity Analysis
• The values in Z row (0, 10 and 40/3) of the above tableau are called
“shadow prices.” They indicate the impact that one unit change in the
constraint would have on the value of the objective function.
• If inspection time (the value of the second constraint ) rose from 22
hrs to 23 hrs, profit will be increased by 10. This value (10) also shows
the amount by which the value of the objective function will be
decreased due to a unit decrease in the level of the constraint.
• But, we can not increase or decrease time (a precious resource)
unlimitedly. A range within which the possible change to the RHS
values of constraints can happen and still have the same shadow price
is called the “range of feasibility” or “the RHS range.”
23
Sensitivity Analysis
25
Sensitivity Analysis
Current Revised
Basis S2 Change
Solution solution
S1 6 24 +4 (6) = +24 48
X1 1 9 +4(1) = +4 13
X2 -1 4 +4(- 1) = - 4 0
Z 10 740 +4(10) = 40 780
Exercise:
26
What will happen to the optimum solution if storage space is
increased by 3 cubic feet?
Answer: S 1 = 8, x1 = 8, x2 = 6 and Profit = 780
Sensitivity Analysis
C 11 10 14 0 0 0 RHS
Basis X1 X2 X3 S1 S2 S3 values
x2 10 .227 1 0 .227 .045 0 3.27
x3 14 .909 0 1 -.091 .182 0 13.09
S3 0 1 0 0 0 0 1 13.00
Z 15 10 14 1 3 0 215.96
C-Z -4 0 0 -1 -3 0
29
Sensitivity Analysis
• Range of optimality:
The rules to determine the range of optimality for both maximization
and minimization problems are:
30
Hence the range of optimality for x3 is 9.60 to 24.99. The range of optimality for the objective function coefficient of x2 is
greater than or equal to 5.59.
Sensitivity Analysis
• Range of optimality:
Determine the range of optimality for the variables in the following
final simplex tableau of a maximization linear programming problem.
C 60 50 0 0 0 RHS
Basis X1 X2 S1 S2 S3 values
S1 0 0 0 1 6 -16/3 24
x1 60 1 0 0 1 -1/3 9
x2 50 0 1 0 -1 2/3 4
Z 60 50 0 10 40/3 740
C-Z 0 0 0 -10 -40/3
31
The range of optimality for x2 =30 to 60
Duality
32
Duality
33
Duality
The final simplex tableau for the above LP model is given below
C 100 22 39 0 0 RHS
Basis y1 y2 y3 S1 S2 values
y3 60 16/3 0 1 1/3 -2/3 40/3
y2 50 -6 1 0 -1 1 10
Z 76 22 39 -9 -4 740 Primal shadow
C-Z 24 0 0 9 4 princes
As we have seen earlier, the final simplex tableau for primal of the
above LP model is:
Final tableau of the primal
C 60 50 0 0 0 RHS
Basis X1 X2 S1 S2 S3 values
S1 0 0 0 1 6 -16/3 24
x1 60 1 0 0 1 -1/3 9
x2 50 0 1 0 -1 2/3 4
35
Z 60 50 0 10 40/3 740
C-Z 0 0 0 -10 -40/3
Duality
• If the primal problem has an optimum solution, the dual will also have
an optimum solution and vice versa. The optimum solution of the dual
and the primal are the same
• Given the final tableau of the dual, the optimal solutions for decision
variables of the primal are given by the C – Z row values of slack
variables in the dual
• Given the final solution of the primal, the solution for the decision
variables of the dual are determined to be the Z row values of slack
variables (shadow prices) of the primal; and the solution for slack
variables of the dual are given by the C – Z row values of decision
variables of the primal
36
Duality: Economic Interpretations
• Economically speaking, for the firm to consider the production of the
new product, the amount of scarce resources that will be given up
must produce a return
4y +2y + 3y 60
to the company that is at least to the foregone
profit.
1 2 3
• For each unit of type I spare part that the company sacrifices in order
to produce the new product, it will gain four hours of assembly time,
two hours of inspection time and three cubic feet of storage space.
However, ABC Company will also give up a unit profit of Birr 60.
• Therefore, the return from the new product should at least equal to
or greater than the forgone profit (Birr 60). That is, the value of 4
assembly hours + 2 inspection hours + 3 cubic feet of storage space
bust be greater than or equal to Birr 60.
37