Documente Academic
Documente Profesional
Documente Cultură
on
Linear Programming
Linear Programming
(An Optimization Technique)
The
a x (, , )b ; i 1,2...m
j 1
ij
( 2)
x j 0; j 1,2...n (3)
Types of Variables
a x
j 1
ij
bi
a
j 1
ij
x j wi bi ; i 1,2...m
Surplus Variables
n
aij x j bi
j 1
a x
j 1
ij
si bi ; i 1,2...m
Components of LPP :
The three important components of LPP
are as follows:
(a) Decision Variables
(b) Objective Function - Max. or Min.
(c) Constraints-limitations.
Assumptions of LP
1.
2. Divisibility: Values of
decision variable
among variables
Formulation of LPP :
Steps to be followed.
1. To decide (define) decision variables.
2. To formulate objective function.
3. To formulate constraints.
CASE - 1
Formulation of LPP :
3 x1 2 x 2 18 ( I ) Time Constraint
x1 4
( II ) Material Constraint
x2 6
x1, x 2 0
CASE - 2
If Time Constraint is modified to:
Time available is not less than 18 hours.
Max. Z = 3x1 + 5x2 Objective Equation
x1 4
( II ) Material Constraint
x2 6
x1, x 2 0
CASE - 3
If Time Constraint is modified to:
Time available is exactly 18 hours.
Max. Z = 3x1 + 5x2 Objective Equation
x1 4
( II ) Material Constraint
x2 6
x1, x 2 0
Types of Solution
II
x2 6
x1, x 2 0
(I )
( II )
( III )
III
Zopt = 36.
F.R.
Z=15.
I
Z=0.
x1
Graphical Method
Case 2.
II
Max Z 3 x1 5 x 2
s / t 3 x1 2 x 2 18 ( I )
x1 4
( II )
x2 6
( III )
x1, x 2 0
Opt. Pt.
(4,6) III
F.R.
Zopt = 42
Z=15.
I
2
x1
Graphical Method
Case 3.
II
Opt. Pt.
(2,6)
Max Z 3 x1 5 x 2
s / t 3 x1 2 x 2 18 ( I )
x1 4
( II )
x2 6
( III )
x1, x 2 0
III
F.L.
Zopt = 36
Z=15.
I
2
x1
Graphical Method
Special Case.
II Alternative Optimal
Solutions
III
F.R.
I
2
x1
Graphical
Method
Special Case. II
Opt. Pt.
F.R.
(Unbounded)
(Min.)
III
I
Z line
2
x1
Graphical
Method
Special Case.
Infeasible
Solution
F.R. Not
possible
2
x1
x2
5
Zopt = 12.5
F.R.
Z=6
-3
-2
-1
III
2
5 x1
-1
II
-2
-3
Graphical
Method
-4
I Max Z 2 x1 3 x 2
s / t 2 x1 x 2 4
3 x1 x 2 3
x1 x 2 5
x1, x 2 0
(I )
( II )
( III )
Graphical Method to
discuss typical constraints
to identify regions of
constraints.
3x1 2 x 2 6
x2
1
-3
-2
-1
0
-1
-2
-3
5 x1
Typical Case
How to plot 3 x1 2 x 2 6 ?
3 x1 2 x 2 6
x2
When 3 x 2 0 x1 2 Point( 2 ,0 )
When x1 0 x 2 3 Point( 0,3 )
2
1
-3
-2
-1
0
-1
-2
-3
5 x1
How to plot x1 x 2 0 ?
Typical Case
x1 x 2 0
x1 x 2
x2
3
-2
-1
0
-1
-2
-3
5 x1
Recapitulate
What is LPP ?
Types of variables.
Components of LPP.
Assumptions of LP.
Formulation of LPP.
Types of solutions.
Graphical Method.
Unique & Alternative Optimal Solution,
Unbounded FR, Infeasible solution.
Max Z 3x1 5 x 2
Simplex Method
s / t 3x1 2 x 2 18 ( I )
x1 4
x2 6
x1, x 2 0
Case 1.
( II )
( III )
Standard Form:
Max Z = 3x1+5x2+0w1+0w2+0w3
3x1+2x2+w1+0w2+0w3 = 18
x1+0x2+0w1+w2+0w3 = 4
0x1+x2+0w1+0w2+w3 = 6
cj 3
5
0
0 0
xi bi x1 x2 w1 w2 w3
w1 18 3
2
1
0 0
w2 4
w3 6
-3 -5 0
Ij = (Zj-cj) = (aij.ci)-cj
Interpretation of Tableau
Ij
Z=0
Tableau - I
ci
0
cj 3
5
0
0 0
xi bi x1 x2 w1 w2 w3 Ratio
w1 18 3
2
1
0 0 18/2 = 9
w2 4
w3 6
0 4/0 =
1 6/1 = 6
Ij
Z=0
-3
-5
Tableau - I
cj 3
bi x1
5
x2
0
0 0
w1 w2 w3 Ratio
ci
xi
w1 18
w2 4
0 18/2 = 9
0 4/0 =
w3 6
Ij
Z=0
0
-3
1
-5
0
0
0
0
1 6/1 = 6
0
18 18 - (6*2)/1 = 6
I(w3) = 0 0 - [1*(-5)]/1 = 5
Tableau - II
ci
0
cj
xi bi
w1 6
3
x1
3
5
x2
0
w2 4
x2
1 6/0 =
Z = 30
-3
Ij
0
0
0
w1 w2 w3 Ratio
1
0 -2 6/3 = 2
0
1
0 4/1 = 4
Tableau - III
cj
ci
xi bi
x1
x2
3
0
5
x1 2
w2 2
x2 6
1
0
0
0
0
1
1/3
-1/3
0
Ij
Z = 36
w1 w2 w3
0 -2/3
1 2/3
0
1
0
Simplex Method to
Standard Maximization
Problem :
Shortcuts and key points
Max Z 3x1 5 x 2
Simplex Method
s / t 3x1 2 x 2 18 ( I )
x1 4
x2 6
x1, x 2 0
( II )
( III )
Standard Form :
Max Z = 3x1+5x2+0w1+0w2+0w3
3x1+2x2+w1+0w2+0w3 = 18
x1+0x2+0w1+w2+0w3 = 4
0x1+x2+0w1+0w2+w3 = 6
Tableau - I
cj 3
bi x1
5 0
0
0
x2 w1 w2 w3 Ratio
ci
xi
w1 18
w2
0 18/2 = 9
0 4/0 =
0
1
0
0 1 6/1 = 6
Ij
Z=0
-3 -5 0
0 0
(Correspond ing Key Row No.).
18 18 - (6*2)/1= 6 New No. Old No. (Corresponding Key Column No.)
0
w3
Key No.
I(w3) = 0 0 - [1*(-5)]/1 = 5
Tableau - II
ci
0
0
5
Ij
cj 3 5
0 0 0
xi bi x1 x2 w1 w2 w3 Ratio
3 0 1 0 -2 6/3 = 2
w1 6
0 4/1 = 4
w2 4
1 0 0 1
0 1 0 0
1 6/0 =
x2 6
0
0 5
Z = 30 -3 0
Tableau - III
ci xi
3
0
5
Ij
cj
bi
3
5
0
0 0
x1 x2 w1 w2 w3
x1 2
w2 2
x2 6
Z = 36
Interpretation of
Simplex Method through
Graphical method.
T2
6
Zopt = 36.
F.R.
Z=15.
T1
III
Max Z 3 x1 5 x 2
s / t 3 x1 2 x 2 18 ( I )
x1 4
( II )
x2 6
( III )
x1, x 2 0
I
2
x1
GATE - 2002
GATE - 2002
(a)
Formulation
MaxZ = 100x1 + 300x2
S/t
x
x
1 2 1
200 100
x1 150
x2 80
x1,x2 0
100
80
50
Z = 15000
200
150
x1
100
80
Opt. Line
75
50
Z = 15000
200
150
x1
GATE - 2003
(1) A manufacture produces two types of products, 1 and
2, at production levels of x1 and x2 respectively. The
profit is given 2x1 + 5x2. The production constraints
are :
x1 + 3x2 40
3x1 + x2 24
x1 + x2 10
x1 0, x2 0
The maximum profit which can meet the constraint is
(A) 29
(B) 38
(C) 44
(D) 75
x2
20
Ans. = (C) 44
Opt. Pt. (0,10) Z = 50
10
Z = 50
40
10
25
x1
GATE - 2000
Solve : Max Z = 4x1 + 6x2 + x3
S/t
2x1 + x2 + 3x3 5
x1, x2, x3 0
GATE - 2000
Solution : Through Simplex Method, in
two iterations the solution of
basic problem is :
x1 = 0, x2 = 5, x3 = 0 giving z = 30
If x2 2 is added then the solution through
Simplex Method, in three iterations will be :
x1 = 3/2, x2 = 2, x3 = 0 giving z = 18
GATE - 2008
Max Z = 4x1 + 6x2
3x1 + 2x2 6
2x1 + 3x2 6
x1, x2 0
Q.1 After introducing slack variables w1 and w2, the initial
feasible solution is represented by the tableau below.
cj
ci
xi
bi
x1
x2
w1
w2
w1
w2
-4
-6
Ij
GATE - 2008
After some Simplex interactions, the following tableau is obtained.
cj
ci
xi
bi
x1
x2
w1
w2
w1
5/3
-1/3
x2
2/3
1/3
12
Ij
GATE - 2008
Q.2
(A)
Min Z = 6u + 6v
S/t
(C)
3u + 2v 4
Max Z = 6u + 6v
S/t
3u + 2v 4
2u + 3v 6
2u + 3v 6
u,v0
u,v0
Max Z = 4u + 6v
S/t
(B)
3u + 2v 6
(D)
Min Z = 4u + 6v
S/t
3u + 2v 6
2u + 3v 6
2u + 3v 6
u,v0
u,v0
Thank you