Altaf CRB
Altaf CRB
PRESENTER: ALTAF
HUSHEN
6Th SEMESTER,MTMG
DEPT. OF MATHEMATICS
GDC, DHARMANAGAR
INTRODUCTION
The concept of linear programming was developed during the late 1930s
and early 1940s.The pivotal moment came i8n 1947 when George B.
Dantzig introduced the simplex method, an algorithm to solve linear
programming problem efficiently. Before Dantzig, optimization in linear
systems lacked a systematic approach. His hard work provided a practical
tool for solving large-scale optimization problems and laid the foundation
for modern operations research. Over the decades linear programming has
evolved with further theoretical advancements and making it a
fundamental tool in fields such as economics, engineering , military
planning and logistics.
DEFINITION OF LPP
A linear programming problem is a mathematical optimization problem
that maximizing or minimizing a linear objective function to a set of
linear equality or inequality constraints.
The general form of a linear programming problem is as
follows :
Maximize or Minimize z= c1x1 +c2x2+……+cnxn
Subject to a11x1 + a12x2 +……+ a1nxn (≥,=,≤)b1
Objective Functions
Decision Variables
Constraints
None-Negativity Restriction
DIFFERENT TYPES OF VARIABLES IN LPP
Decision Variable: These are the primary variables that the decision maker can control or
decide upon to optimize the objective function.
Basic Variable: Basic variables are those that correspond to the basic feasible solution.
These variables have non-zero values in the optimal solution .
Non-Basic Variable: These are the remaining variables that are not part of the basic
solution . They are usually set to zero in the optimal solution.
Slack Variable: A slack variable is variable that is added to an inequality constraint to
transform it into an equality.
Surplus Variable: A surplus variable is a variable that is subtracted to an inequality
constraint to transform it into an equality.
Artificial Variable: If some constraints are of ‘=` or ‘≥` type , then we can not get the
starting BFS. In such cases we introduce a new variable called artificial variable to get
starting BFS.
FORMULATION OF AN LPP
Example:
A resourceful home decorator manufactures two types of lamps say A
and B. Both lamps go through two technicians, first a cutter second a
finisher. Lamp A requires 2 hours of the cutter’s time and 1 hour of the
finishers time. Lamp B requires 1 hour of cutter’s and 2 hours of
finishers time. The cutter has 104 hours and finishers 76 hours of time
available each month. Profit on one lamp A is Rs 6 and the lamp B is Rs
11. Formulate this problem as a LPP.
Solution:
Let the decorator manufacture X1 and X2 lamp of types A and B respectively.
Therefore total profit(in Rs) Z= 6x1+11x2
Total time of the cutter used in preparing X1 lamp of type A and X2 type of B is
2x1+x2
Since cutter has 104 hours only for each month
Therefore, 2x1+x2≤104
Similarly, the total time of the finisher used in preparing X 1 lamps of type A and X2
of type B is x1+2x2≤76
Hence the decorator problem is to find X1 ,X2 which
Maximize Z= 6x1 +11x2
Subject to 2x1+x2 ≤104
x1+2x2 ≤76
x1 ,x2 ≥0
SOME IMPORTANT DEFINITION
2
A(1,0)
B(0,1)
X2
O(0,0) 1 2 3 4
x1+x2=1
3x1+x2=3
0 s1 1 2 1 0 40 40
0 s2 3 2 0 1 60 20
Zj -Cj -60 -50 0 0
0 s1 0 4/3 1 -1/3 20 15
60 x1 1 2/3 0 1/3 20 30
Z –Cj 0 -10 0 20
50 x2 0 1 ¾ -1/4 15
60 X1 1 0 -1/2 1/2 10
SinceZall Zj–Cj≥0.Therefore the solution is optimal and is given by
j -Cj 0 0 30/4 70/4
Z=1350 at x1=10 and x2=15
BIG M METHOD
The Big M method is a variant of the simplex method used for solving linear
programming problems that include artificial variables.
Example: Maximize Z= x1+5x2
Subject to 3x1+4x2≤6
x1+3x2≥3
x1,x2≥0
Solution: Introducing slack variable S1 ,surplus variable S2 and artificial
variable A1, given LPP can be written in standard form—
Maximize Z=x1 +5x2+0s1+0s2 –MA1
Subject to 3x1+4x2+s1+0s2+0A1=6
x1 + 3x2+0s1 - s2 + A1=3
x1 ,x2,s1,s2,A1≥0
Now we construct the initial simplex table
Cj 1 5 0 0 -M
CBi soluti Min
B.V x1 x2 s1 s2 A1 on ratio
0 S1 3 4 1 0 0 6 3/2
-M A1 1 3 0 -1 1 3 1
Zj-cj -M-1 -3M-5 0 M 0
0 S1 5/3 0 1 4/3 - 2 3/2
5 x2 1/3 1 0 -1/3 - 1 -
Zj-cj 2/3 0 0 -5/3 -
0 S2 5/4 0 ¾ 1 - 3/2
5 x2 3/4 1 1/4 0 - 3/2
Z -c 11/4 0 5/4 0
Since allj Zj j–Cj≥0.Therefore the solution is optimal and is given by
Z=15/2 at x1=0,x2=3/2.
TWO PHASE METHOD
•The two phase method is a systematic approach used in linear programming to find
the optimal solution to problems, especially when they include artificial variables.
Example: Maximize Z=2x 1+3x2+x3
Subject to -3x1+2x2+3x3=8
3x1+4x2+2x3=7
x1,x2,x3≥0
Solution: Introducing artificial variable A1,A2 given LPP can be written in standard
form, Maximize Z=2x1+3x2+x3–MA1-MA2
Subject to -3x1+2x2+3x3+A1+0A2=8
3x1+4x2+2x3+0A1+A2=7
x1,x2,x3,A1,A2≥0
Now we solve this LPP by two phase method
Phase 1: For phase-1 objective function is Maximize Z*= -A1–A2
Now we construct the initial simplex table
Cj 0 0 0 -1 -1
CBi soluti Min
B.V x1 x2 x3 A1 A2 on ratio
-1 A1 -3 2 3 1 0 8 4
-1 A2 3 4 2 0 1 7 7/4
Zj-cj 0 -6 -5 0 0
-1 A1 -9/2 0 2 1 - 9/2 9/4
0 x2 3/4 1 1/2 0 - 7/2 7/2
Zj-cj 9/2 0 -2 0 -
0 X3 -9/4 0 1 - - 9/4
0 x2 15/8 1 0 - - 5/8
Zj-cj 0 0 0 -
Since all Zj –Cj ≥0, Now we pass to Phase 2
Phase 2: For phase two objective function is to be maximize
Z=2x1 +3x2 +x3.
From final simplex table of Phase 1 we have
Cj 2 3 1
CBi Solut Min
B.V x1 x2 x3 ion ratio
1 X3 -9/4 0 1
3 X2 15/8 1 0
Zj – c j 11/8 0 0
Since all Zj–Cj≥0.Therefore the solution is optimal
and is given by Maximize Z=33/8 at
x1=0,x2=5/8,x3=9/4.
APPLICATION OF LPP IN REAL LIFE