Unit 4 - Full - BSOR
Unit 4 - Full - BSOR
Unit IV
Introduction to OR and LPP, Simplex Method
(i) It is the application of scientific methods, techniques and tools to problems involving the
operations of a system so as to provide those in the control of the system with optimum
solutions to the problems.
(ii) Operation Research is a tool for taking decisions which searches for the optimum results
in parity with the overall objectives and constraints of the organization.
(iv) O.R. is an aid for executive in making his decisions by providing him with the needed
quantitative information’s based on the scientific method of analysis.
Scope of Operations Research
5.Alternative solutions:
Operations Research techniques will suggest all the alternative
solutions available for the same profit, so we may decide on the basis
of its strategies.
Limitations of Operations Research
a) Magnitude of computation.
Operations Research tries to find out the optimal solution taking all the
factors into account. Expressing the factors in quantity and establishing
relationship among them, requires huge calculations.
b) Absence of quantification.
Operations Research provides solution only when all the elements
related to a problem can be quantified. The factors such as price,
product, etc., can be expressed in terms of quantity, but factors such as
human relations etc, cannot be quantified.
c) Distance between managers and Operations Research.
Operations Research, being specialist’s job, requires a
mathematician or a statistician, who might not be aware of
the business problems.
1. Formulate Problem
2. Develop OR model
3. Select Best method to solve OR model
4. Validate OR Model
5. Decision making and implement OR model
Linear programming problem
Formulation of LPP
Feasible solution and optimal solution
The variables that appear in the objective function are called decision
variables.
These values of the decision variables which satisfy the constraints are
called feasible solutions.
Skilled men 2 1
Semiskilled men 2 3
Rs.10 Rs.8
B 2.5 1.5
Rs.40
300 240
2) Vitamins B1 and B2 are found in two foods F1 and F2. 1 unit of F1 contains 3 units of B1 and 4
units of B2. 1 unit of F2 contains 5 units of B1 and 3 units of B2 respectively. Minimum daily
prescribed consumption of B1 & B2 is 50 and 60 units respectively. Cost per unit of F1 & F2 is Rs. 6 &
Rs. 3 respectively. Formulate as LPP.
Solution
Graphical Method
2)
3)
4)
Exercise:
Unit IV
SIMPLEX METHOD
R2(new)=R2(old) - R1(new) 12 0 1.4 -0.2 1
Iteration-2 Cj 10 6 0 0
B CB XB x1 x2 S1 S2 MinRatio
x1 10 6 1 0.6 0.2 0
S2 0 12 0 1.4 -0.2 1
Z=60 Zj 10 6 2 0
Zj-Cj 0 0 2 0
Max Z=60
2. MAX Z = 10500x1 + 9000x2
subject to
x1 + x2 <= 50
20x1 + 10x2 <= 800
2x1 + x2 <= 80
and x1,x2 >= 0
The problem is converted to canonical form by adding slack, surplus and artificial variables as appropiate
subject to
x1 + x2 + S1 = 50
20 x1 + 10 x2 + S2 = 800
2 x1 + x2 + S3 = 80
and x1,x2,S1,S2,S3≥0
MinRatio
B CB XB x1 x2 S1 S2 S3
XB/x1
S1 0 50 1 1 1 0 0 50/1=50
S2 0 800 20 10 0 1 0 800/20=40
S3 0 80 (2) 1 0 0 1 80/2=40→
Z=0 Zj 0 0 0 0 0
Negative minimum Zj-Cj is -10500 and its column index is 1. So, the entering variable is x1.
Minimum ratio is 40 and its row index is 3. So, the leaving basis variable is S3.
R3(new)=R3(old)÷2
R3(old) = 80 2 1 0 0 1
R1(new)=R1(old) - R3(new)
R1(old) = 50 1 1 1 0 0
R3(new) = 40 1 0.5 0 0 0.5
R2(new)=R2(old) - 20R3(new)
R2(old) = 800 20 10 0 1 0
20×R3(new) = 800 20 10 0 0 10
MinRatio
B CB XB x1 x2 S1 S2 S3
XB/x2
S2 0 0 0 0 0 1 -10 ---
Negative minimum Zj-Cj is -3750 and its column index is 2. So, the entering variable is x2.
Minimum ratio is 20 and its row index is 1. So, the leaving basis variable is S1.
R1(new)=R1(old)÷0.5
R1(new)=R1(old)÷0.5 20 0 1 2 0 -1
R2(new)=R2(old)
R2(old) = 0 0 0 0 1 -10
R2(new)=R2(old) 0 0 0 0 1 -10
R3(new)=R3(old) - 0.5R1(new)
R1(new) = 20 0 1 2 0 -1
R3(new)=R3(old) - 0.5R1(new) 30 1 0 -1 0 1
B CB XB x1 x2 S1 S2 S3 MinRatio
x2 9000 20 0 1 2 0 -1
S2 0 0 0 0 0 1 -10
x1 10500 30 1 0 -1 0 1
Max Z=495000
3. MAX Z = 8000x1 + 12000x2
subject to
9x1 + 12x2 <= 180
3x1 + 4x2 <= 60
x1 + 3x2 <= 30
and x1,x2 >= 0
The problem is converted to canonical form by adding slack, surplus and artificial variables as appropiate
subject to
9 x1 + 12 x2 + S1 = 180
3 x1 + 4 x2 + S2 = 60
x1 + 3 x2 + S3 = 30
and x1,x2,S1,S2,S3≥0
MinRatio
B CB XB x1 x2 S1 S2 S3
XB/x2
S1 0 180 9 12 1 0 0 180/12=15
S2 0 60 3 4 0 1 0 60/4=15
S3 0 30 1 (3) 0 0 1 30/3=10→
Z=0 Zj 0 0 0 0 0
Negative minimum Zj-Cj is -12000 and its column index is 2. So, the entering variable is x2.
Minimum ratio is 10 and its row index is 3. So, the leaving basis variable is S3.
R3(new)=R3(old)÷3
R3(old) = 30 1 3 0 0 1
R1(new)=R1(old) - 12R3(new)
R1(old) = 180 9 12 1 0 0
12×R3(new) = 120 4 12 0 0 4
R1(new)=R1(old) - 12R3(new) 60 5 0 1 0 -4
R2(new)=R2(old) - 4R3(new)
R2(old) = 60 3 4 0 1 0
MinRatio
B CB XB x1 x2 S1 S2 S3
XB/x1
S1 0 60 5 0 1 0 -4 60/5=12
Negative minimum Zj-Cj is -4000 and its column index is 1. So, the entering variable is x1.
Minimum ratio is 12 and its row index is 2. So, the leaving basis variable is S2.
R2(new)=R2(old)÷1.6667
R1(new)=R1(old) - 5R2(new)
R1(old) = 60 5 0 1 0 -4
5×R2(new) = 60 5 0 0 3 -4
R1(new)=R1(old) - 5R2(new) 0 0 0 1 -3 0
R3(new)=R3(old) - 0.3333R2(new)
B CB XB x1 x2 S1 S2 S3 MinRatio
S1 0 0 0 0 1 -3 0
Max Z=168000
4. MAX Z = 8/100x1 + 10/100x2
subject to
x1 + x2 <= 70000
x1 >= 10000
x2 <= 30000
and x1,x2 >= 0
The problem is converted to canonical form by adding slack, surplus and artificial variables as appropiate
2. As the constraint-2 is of type '≥' we should subtract surplus variable S2 and add artificial variable A1
MinRatio
B CB XB x1 x2 S1 S2 S3 A1
XBx1
S1 0 70000 1 1 1 0 0 0 700001=70000
S3 0 30000 0 1 0 0 1 0 ---
Z=-10000M Zj -M 0 0 M 0 -M
Negative minimum Zj-Cj is -M-0.08 and its column index is 1. So, the entering variable is x1.
Minimum ratio is 10000 and its row index is 2. So, the leaving basis variable is A1.
R2(new)=R2(old)
R2(old) = 10000 1 0 0 -1 0
R2(new)=R2(old) 10000 1 0 0 -1 0
R1(new)=R1(old) - R2(new)
R1(old) = 70000 1 1 1 0 0
R2(new) = 10000 1 0 0 -1 0
R3(new)=R3(old)
R3(old) = 30000 0 1 0 0 1
R3(new)=R3(old) 30000 0 1 0 0 1
MinRatio
B CB XB x1 x2 S1 S2 S3
XBx2
S1 0 60000 0 1 1 1 0 600001=60000
Negative minimum Zj-Cj is -0.1 and its column index is 2. So, the entering variable is x2.
Minimum ratio is 30000 and its row index is 3. So, the leaving basis variable is S3.
R3(new)=R3(old)
R3(old) = 30000 0 1 0 0 1
R3(new)=R3(old) 30000 0 1 0 0 1
R1(new)=R1(old) - R3(new)
R1(old) = 60000 0 1 1 1 0
R3(new) = 30000 0 1 0 0 1
R2(new)=R2(old)
R2(old) = 10000 1 0 0 -1 0
R2(new)=R2(old) 10000 1 0 0 -1 0
MinRatio
B CB XB x1 x2 S1 S2 S3
XBS2
Negative minimum Zj-Cj is -0.08 and its column index is 4. So, the entering variable is S2.
Minimum ratio is 30000 and its row index is 1. So, the leaving basis variable is S1.
R1(new)=R1(old)
R1(old) = 30000 0 0 1 1 -1
R1(new)=R1(old) 30000 0 0 1 1 -1
R2(new)=R2(old) + R1(new)
R2(old) = 10000 1 0 0 -1 0
R1(new) = 30000 0 0 1 1 -1
R3(new)=R3(old)
R3(old) = 30000 0 1 0 0 1
R3(new)=R3(old) 30000 0 1 0 0 1
B CB XB x1 x2 S1 S2 S3 MinRatio
S2 0 30000 0 0 1 1 -1
x1 0.08 40000 1 0 1 0 -1
x2 0.1 30000 0 1 0 0 1
Max Z=6200
5.MAX Z = 6x1 + 10x2 + 8x3
subject to
2x1 + 3x2 <= 16
2x2 + 5x3 <= 20
3x1 + 2x2 + 4x3 <= 30
and x1,x2,x3 >= 0
The problem is converted to canonical form by adding slack, surplus and artificial variables as appropriate
MinRatio
B CB XB x1 x2 x3 S1 S2 S3
XB/x2
S1 0 16 2 (3) 0 1 0 0 16/3=5.3333→
S2 0 20 0 2 5 0 1 0 20/2=10
S3 0 30 3 2 4 0 0 1 30/2=15
Z=0 Zj 0 0 0 0 0 0
Zj-Cj -6 -10↑ -8 0 0 0
Negative minimum Zj-Cj is -10 and its column index is 2. So, the entering variable is x2.
Minimum ratio is 5.3333 and its row index is 1. So, the leaving basis variable is S1.
R1(new)=R1(old)÷3
R1(old) = 16 2 3 0 1 0 0
R2(new)=R2(old) - 2R1(new)
R2(old) = 20 0 2 5 0 1 0
R3(new)=R3(old) - 2R1(new)
R3(old) = 30 3 2 4 0 0 1
Iteration-2 Cj 6 10 8 0 0 0
MinRatio
B CB XB x1 x2 x3 S1 S2 S3
XB/x3
Negative minimum Zj-Cj is -8 and its column index is 3. So, the entering variable is x3.
Minimum ratio is 1.8667 and its row index is 2. So, the leaving basis variable is S2.
R2(new)=R2(old)÷5
R2(old) = 9.3333 -1.3333 0 5 -0.6667 1 0
R1(new)=R1(old)
R1(old) = 5.3333 0.6667 1 0 0.3333 0 0
R3(new)=R3(old) - 4R2(new)
R3(old) = 19.3333 1.6667 0 4 -0.6667 0 1
Iteration-3 Cj 6 10 8 0 0 0
MinRatio
B CB XB x1 x2 x3 S1 S2 S3
XBx1
Negative minimum Zj-Cj is -1.4667 and its column index is 1. So, the entering variable is x1.
Minimum ratio is 4.3415 and its row index is 3. So, the leaving basis variable is S3.
R3(new)=R3(old)÷2.7333
R3(old) = 11.8667 2.7333 0 0 -0.1333 -0.8 1
R1(new)=R1(old) - 0.6667R3(new)
R1(old) = 5.3333 0.6667 1 0 0.3333 0 0
R2(new)=R2(old) + 0.2667R3(new)
R2(old) = 1.8667 -0.2667 0 1 -0.1333 0.2 0
Iteration-4 Cj 6 10 8 0 0 0
B CB XB x1 x2 x3 S1 S2 S3 MinRatio
Max Z=74.6341
Iteration-1 Cj 5 4 6 0 0 0
MinRatio
B CB XB x1 x2 x3 S1 S2 S3
XB/x3
S1 0 100 1 1 1 1 0 0 100/1=100
S3 0 150 3 2 0 0 0 1 ---
Z=0 Zj 0 0 0 0 0 0
Zj-Cj -5 -4 -6↑ 0 0 0
Negative minimum Zj-Cj is -6 and its column index is 3. So, the entering variable is x3.
Minimum ratio is 52.5 and its row index is 2. So, the leaving basis variable is S2.
R2(new)=R2(old)÷4
R2(old) = 210 3 2 4 0 1 0
R1(new)=R1(old) - R2(new)
R1(old) = 100 1 1 1 1 0 0
R3(new)=R3(old)
R3(old) = 150 3 2 0 0 0 1
R3(new)=R3(old) 150 3 2 0 0 0 1
Iteration-2 Cj 5 4 6 0 0 0
MinRatio
B CB XB x1 x2 x3 S1 S2 S3
XB/x2
Negative minimum Zj-Cj is -1 and its column index is 2. So, the entering variable is x2.
Minimum ratio is 75 and its row index is 3. So, the leaving basis variable is S3.
Entering =x2, Departing =S3, Key Element =2
R3(new)=R3(old)÷2
R3(old) = 150 3 2 0 0 0 1
R1(new)=R1(old) - 0.5R3(new)
R1(old) = 47.5 0.25 0.5 0 1 -0.25 0
R2(new)=R2(old) - 0.5R3(new)
R2(old) = 52.5 0.75 0.5 1 0 0.25 0
R3(new) = 75 1.5 1 0 0 0 0.5
Iteration-3 Cj 5 4 6 0 0 0
B CB XB x1 x2 x3 S1 S2 S3 MinRatio
x3 6 15 0 0 1 0 0.25 -0.25
x2 4 75 1.5 1 0 0 0 0.5
Max Z=390
MinRatio
B CB XB x1 x2 x3 S1 S2
XB/x2
S1 0 100 1 1 1 1 0 100/1=100
Z=0 Zj 0 0 0 0 0
Negative minimum Zj-Cj is -2080 and its column index is 2. So, the entering variable is x2.
Minimum ratio is 66.6667 and its row index is 2. So, the leaving basis variable is S2.
R2(new)=R2(old)÷6
R2(old) = 400 5 6 5 0 1
R1(new)=R1(old) - R2(new)
R1(old) = 100 1 1 1 1 0
208
Iteration-2 Cj 1850 1875 0 0
0
S MinRatio
B CB XB x1 x2 x3 S2
1 XB/x3
33.333
S1 0 0.1667 0 0.1667 1 -0.1667 33.3333/0.1667=200
3
- 346.666
Zj-Cj -116.6667 0 0
141.6667↑ 7
Negative minimum Zj-Cj is -141.6667 and its column index is 3. So, the entering variable is x3.
Minimum ratio is 80 and its row index is 2. So, the leaving basis variable is x2.
R2(new)=R2(old)÷0.8333
R2(old) = 66.6667 0.8333 1 0.8333 0 0.1667
R1(new)=R1(old) - 0.1667R2(new)
R1(old) = 33.3333 0.1667 0 0.1667 1 -0.1667
B CB XB x1 x2 x3 S1 S2 MinRatio
S1 0 20 0 -0.2 0 1 -0.2
Max Z=150000
• Solution methods to LP problems with integer or Boolean variables are still far less efficient than
those which include continuous variables only.