Linear Programming
Linear Programming
Programming
LINEAR
PROGRAMMING
What is LP ?
The word linear means the relationship which can
• Optimization technique
• To find optimal value of objective function, i.e.
maximum or minimum
• “LINEAR” means all mathematical functions
are required to be linear…
• “PROGRAMMING” refers to Planning, not
computer programming…
What is graphical method ???
• One of the LPP method
• Used to solve 2 variable problems of LPP…
Steps for graphical
method…
FORMULATE THE OUTLINE THE
PROBLEM SOLUTION AREA
( for objective & ( area which satisfies
constraints functions) the constraints)
CIRCLE POTENTIAL
FRAME THE GRAPH PLOT THE GRAPH SOLUTION
( one variable on ( one variable on POINTS
horizontal & other at horizontal & other ( the intersection
vertical axes) at vertical axes) points of all
constraints)
No. of
females
No. of males
STEP 3- PLOT THE CONSTRAINTS
• To plot the constraints, we will opt an arbitrary
value to the variables as:-
x + y ≤ 11:- converting as x + y = 11
x 0 11
y 11 0
6,000x+5,000y≤60,000:- converting as 6x + 5y=
60
x 0 10
y 12 0
STEP 4- PLOT THE GRAPH
No. of No. of
females females
14 14
( 0 , 11 ) 12 ● ( 0 , 12 )
12
10 ● 10
8 8
6 6
4 4
2 ( 11 , 0 ) 2 ( 10 , 0 )
0
● 0
●
No. of 2 4 No. of
2 4 6 8 10 12 6 8 10 12
males males
x+y ≤ 6x + 5y ≤60
11
STEP 5- FIND THE OPTIMAL SOLUTION
No. of females
12 ● OPTIMAL
● SOLUTION POINT
10
8
( 5, 6 )
6 ●
4 FEASIBLE
2
REGION
0 ● ●
2 4 6 8 No. of males
10 12
STEP 6- CIRCLE POTENTIAL OPTIMAL
POINTS
No. of females
12
( 0,
11 )
10
8 ( 5, 6 )
6
2 ( 10 , 0 )
0
( 0, 2 4 6 8 10 12 No. of males
0)
STEP 7- SUBSTITUE & OPTIMIZE
= 5 No. of female
workers = 6
Max. Z
Let us take other example!!!
• Find the maximum value of objective function
Z= 4x + 2y
s.t. x + 2y ≥ 4
3x + y ≥
7
-x + 2y ≤
7
&x≥0&
y≥0
PLOT THE CONSTRAINTS
x 0 4
x + 2y = 4
y 2 0
x 0 7/3
3x + y = 7 y 7 0
x 0 -7
-x + 2y = 7
y 7/2 0
PLOTTING
CONSTRAINTSTO
GRAPH
x 0 4
x + 2y ≥ 4
y 2 0
Y 67
5
4
3
2
(0,
1
• (4,0)
02 ) •4 5 7
1 2 3 6
X
3x + y ≥ 7 x 0 7/3
y 7 0
(0,7)
Y 67
5
4 •
3
2
• ( 7/3 , 0
1 )
0
4 5 6 7
1 2 3
X
x 0 -7
-x + 2y ≤ 7 y 7/2 0
7 Y
6
( 0 , 7/2 5
4
3
)
( -7 , 0 )
• 2
1
• 0
-7 -6 -5 -4 -3
-2 -1
X
There is a common portion or common points which
intersects by all 3 regions of lines
3x + y ≥ 7
-x + 2y ≤ 7
Y 67
5
x + 2y ≥ 4
4
3
2
1
0
1 2 3 4 5 6 7
-7 -6 -5 -4 -3 -2 -1
X
CIRCLE THE POTENTIAL POINTS!!!
Y 67
(1,4)
5
4
3
2 (2,1)
1
( 4 ,0 )
0
1 2 3 4 5 7
-7 -6 -5 -4 -3 -2 -1 6 X
STEP 7- SUBSTITUE & OPTIMIZE
Max Z = 4x + 2y
POTENTIAL Z = 4x + 2y MAXIMUM Z
OPTIMAL PTS.
(2,1) 4(2)+2(1) 10