Professional Documents
Culture Documents
TWO
Linear Programming LP
Operations Research
by
FUAD MUSTEFA
M1 7 4
M2 5 5
Profit from the Sale of table is Birr 40 and that of a chair is Birr 30.
Required: formulate the LP Problem (LPP)?
12/24/2022 Fuad.M 2022 9
Example 1
Step I Identification of the decision variables.
Let x1 = Number of tables produced and X2 = Number of Chairs produced
Step II List down all the constraints :
A. Total time on machine M1 cannot exceed 200 hour
∴ 7X1+4X2≤200 and
Feasible
region Number of unites o A
o(0, 0) C X
12/24/2022 2000 3600
Fuad.M 2022 3900/9
At corner points (O, A, B, C), find the profit value from the objective
function. Those points which maximize the profit are the optimal
point.
Y
Y=0
A (0, 20/3) 2X1 + 3X2 ≥ 15
Feasible Region
5
B (2.5, 3.33)
X2 =0
X
5 C (7.5, 0)
12/24/2022 Fuad.M 2022 22
Minimize.Z 25 X 130 X 2
Max.Z 8 X 116 X 2
Subjectto :
3 X 16 X 2 900
X 1 X 2 200
X 2 125
X1, X 2 0
200)
(0, X 1 X 2 200
(0,150) X2=125 Marketing
C (50, 125)
equation
B (0, 125) D (100,100)
Cutting: 3X1+6X2=900
FR X1=0
(0, 40)
2X1+X2= 40
X2=0
X1
X1+X2 =0
1 Unbounded Feasible
region
Feasible Region
X1
A Unbounded
(0, 3) Feasible Region X1-X2=1
B (2, 1)
X1+X2=3
X1
And
0 0 Yes
Less than or A slack variable is
added
equal to ≤
0 0 No
Greater than A surplus variable
-M +M Yes
is subtracted and
or equal to (≥)
artificial variable is
added
Fuad.M 2022
12/24/2022
Only an artificial -M +M Yes 38
Equal to (=)
Simplex cont…
A slack variable represents unused resource, either in the form of
time on a machine, labor hour, money, warehouse space or any
number of such resources in various business problems.
Since variable yields no profit, therefore such variable are
added to the original objective function with zero coefficients.
A surplus variable represents amount by which solution values
exceed a resource. These variables are also called negative slack
variables.
Surplus variables carry a zero coefficient in the objective
function.
12/24/2022 Fuad.M 51
Simplex algorism (Maximization P)
0 S2 0 3 0 1 -1 R’2=R2-R3
33
300 X1 1 0 0 0 1 R’3=R3
12
Zj 300 0 0 0 300 3600
Cj - Zj 0 250 0 0 -300
Maximize Z = 40X1+35X2+0S1+0S2
Subject to:
2X1+3X2+S1=60 raw material constraint
4X1+3X2+S2=96 Labor hour constraint
X1,X2,S1,S2≥0
S1 0 2 3 1 0 60 values
S2 0 4 3 0 1 96
Zj 0 0 0 0
Cj-Zj 40 35 0 0
Test for optimality right hand side should be +Ve and the Cj-Zj
row should be –Ve. So the solution is not optimal.
Cj 40 35 0 0 RH Bi/EV
BV SV
X1 X2 S1 S2 bi
S1 0 2 3 1 0 60 30 Leaving
S2 0 4* 3 0 1 96 24 variable
Zj 0 0 0 0
Cj-Zj 40 35 0 0
4* is pivot point
Entering
variable (EV)
Cj 40 35 0 0 RH
BV SV
X1 X2 S1 S2 bi
S1 0 0 3/2 1 -1/2 12
X1 40 1 3/4 0 1/4 24
Zj 40 30 0 10 960
Cj-Zj 0 5 0 -10
The solution is not optimal because we have +ve value in Cj-Zj row
Entering
variable (EV)
X2 35 0 1 2/3 -1/3 8
X1 40 1 0 -1/2 1/2 18
Zj 40 35 10/3 25/3 1000
Cj-Zj 0 0 -10/3 -25/3
The solution is optimal because all the values of Cj-Zj row
is negative and zero and all the right hand side values are
positive