Lecture 6
Lecture 6
Lecture 6
Linear programing (LP)
Mixed Constraints
Course leader : Shewayirga Assalf (Ass.Pro.)
Mixed constraints
Mixed constraints
Initial non-optimal solution is written as follows:
simplex table I
Zj Cj 4 2 0 0 M M Ratio
BV Q x1 x2 s1 s2 A1 A2
M A1 3 3 1 0 0 1 0 1
M A2 6 4 3 -1 0 0 1 6/4
0 S2 3 1 2 0 1 0 0 3
Zj 9M 7M 4M -M 0 M M
Cj-Zj 4-7M 2-4M M 0 0 0
X1= Q X1 X2 S1 S2 A2
3 3 1 0 0 0
3/3 3/3 1/3 0/3 0/3 0/3
new row= 1 1 1/3 0 0 0
New row= old row – corresponding coefficient new tableau
in pivot column X row value
Zj Cj 4 2 0 0 M Ratio
BV Q x1 x2 s1 s2 A2
4 X1 1 1 1/3 0 0 0 3
M A2 2 0 5/3 -1 0 1 6/5
0 S2 2 0 5/3 0 1 0 6/5
Zj 4+2M 4 4/3+5/3M -M 0 M
Cj-Zj 0 2-5M/3 M 0 0
Select near to
the top
X2= Q X1 X2 S1 S2
2 0 5/3 -1 0
2/5/3 0/5/3 5/3/5/3 -1/5/3 0/5/3
new row= 6/5 0 1 -3/5 0
New row= old row – corresponding coefficient new tableau
in pivot column X row value
2
Example:
The doctor advises a patient visited him that the patient is weak
in his health due to shortage of two vitamins, i.e., vitamin X and
vitamin Y.
He advises him to take at least 40 units of vitamin X and 50 units
of Vitamin Y everyday.
He also advises that these vitamins are available in two tonics A
and B.
Each unit of tonic A consists of 2 units of vitamin X and 3 units of
vitamin Y.
Each unit of tonic B consists of 4 units of vitamin X and 2 units of
vitamin Y.
Tonic A and Bare available in the medical shop at a cost of ETB 3
per unit of A and ETB 2.50 per unit of B.
The patient has to fulfill the need of vitamin by consuming A and B
at a minimum cost.
If we solve and get the solution of the primal problem, we
can read the answer of dual problem from the primal
solution.
Primal problem: Dual Problem:
Subject to:
x1, x2≥0
Basis Cj 60 50 0 0 0 Quantit
X1 X2 S1 S2 S3 y
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
Cj-Z 0 0 0 10 -40/3
Shadow price
From the above tableau; the shadow prices are $ 0 for S1, $10
Step 2. identify the smallest +ve ratio and –ve ratio closest to zero
Step 3. find the upper limit or allowable increase and lower limit
or allowable decrease (range of feasibility)
Cj 60 50 0 0 0
Zj Bv Q X1 X2 S1 S2 S3
0 S1 24 0 0 1 6 -16/3
60 X1 9 1 0 0 -1 -1/3
50 X2 4 0 1 0 -1 2/3
Zj 740 60 50 0 10 40/3
Cj-Zj 0 0 0 -10 -40/3
Solution
1. Recall the original value of the resources
Original value constraints S1 S2 S3
100 S1 1 6 -16/3
22 S2 0 -1 -1/3
39 S3 0 -1 2/3
2. ratio = Q/respective slack values
S1= 24/1= 24 S2= 24/6= 4 S3= 24/-16/3= -4.5
9/0= undefined 9/-1= -9 9/-1/3= -27
4/0= undefined 4/-1= -4 4/2/3= 6
3. Find the range of feasibility
Therefore:
Two cases
1. Range of insignificance
the range over which the non basic variables objective function
coefficient can change without making these variables entering in
the solution
2.Range of optimality
the range over which the objective function coefficient of basic
variables can change without changing the optimal values i.e.
without changing basic and non basic variables but change the
optimal function value.
Steps for range of optimality
X1 Cj-Zj 0 0 0 -10 -40/3
X1 values in the
tableau
1 0 0 1 -1/3 X2 Cj-Zj 0 0 0 -10 -40/3
0 1 0 -1 2/3
∞ ∞ ∞ -10 40