lpp Introduction
lpp Introduction
Linear Programming
Linear programming (L.P.) is the mathematic technique designed to optimize the use of limited sources
linear programming is more applicable for military, industry, agriculture, transportation, economic
problems etc.
Example-1: Mr. Vishwas Sir started business of publishing Mathematics and physics Books. One
Mathematic book required 3 hours for printing and 1 hour for binding, one physics book required 2 hours
for printing and 2 hours for binding. Printing machine is available for 24 hours per week and binding
machine available for 12 hours per week. A market survey restricts maximum demand of physics books is
4 books per week. Demand of physics book cannot exceed that of mathematics book by more than 2
books per week. Vishwas Sir getting profit of Rs. 2.5 on mathematics book and Rs. 2 on physics book. Find
the mathematical model of the given problem. Also find the number of mathematics books and physics
books published, so that Vishwas Sir gets maximum profit per week.
Solution: Let X1 be the number mathematic books, and X2 be the number of physics books published.
Books Mathematics Book (X1) Physics Book(X2) Number of hours
machine available
Machine
Printing 3 2 24
Binding 1 2 12
Profit Rs.25 Rs.2
Profit due physics and mathematics books = 2.5 X1+ 2 X2
3 X1+ 2 X2≤ 24 (Printing)
1 X1 +2 X2≤12 (Binding)
1X2 -1 X1 can not>2 (Market survey)
1X2≤4 (Market survey)
X1≥o & X2≥o (Number of books non-negative)
Thus
Max Z=2.5 X1+ 2 X2 --------------------- (1) (Objective function)
3 X1+ 2 X2≤ 24 --------------------- (2) (Constraints)
1 X1 +2 X2≤12 --------------------- (2) (Constraints)
-1X1 +1 X2≤2 --------------------- (2) (Constraints)
1X2≤4 --------------------- (2) (Constraints)
X1≥o & X2≥o --------------------- (3) (Non-negative restriction)
This is the required mathematical model of the given linear programming problem.
1) X1& X2 are called decision variables
2) The function Z which is decided by the decision variables X1& X2 to the best optimization is called
objective function.
3) The conditions on the choice of decision variables are called constraints.
4) The decision variables normally non-negative real’s i.e. X1≥o & X2≥o, These are called non-negative
restriction. 5)
Any set of decision variables which satisfy the constraints of the given problem is called solution of the
given model.
6) If all the decision variables in a solution satisfy non-negative restriction then the solution is called
feasible solution. 7)
The region formed by the set of all feasible solutions is a feasible region.
8) Feasible solution that optimized the objective function is called optimal solution.
9) The value of the objective function at an optimal solution is called optimal value of given model.
10) Identify the corner point at which the value of the objective function is maximum. The co-ordinate of
this vertex is the optimal solution and the value of Z is the optimal value.
2
Note:-if in any iteration all the values in the key column are negative then the problem has unbounded
solution.
Note: - If all the elements in the row of Z are positive and value of any one of the basic variable is
negative, then the given problem has infeasible solution.
Note: - If the coefficient of any one of the non-basic variable in the row of Z is zero then given problem
has alternative solution.
Note: - If the value of any one of the basic variable is zero, then the given problem has degenerate
solution
Big-M Method (or Penalty method):-
If anyone or some constraints are of greater than type then we have to subtract surplus variable, i.e. we
have to add -s1,-s2,-s3 ,……etc. to convert greater than or equal type inequality to equality. But we would
not get a unit matrix. To overcome this difficulty, we introduce in addition to surplus variable -s1,-s2,-s3
,…… artificial variable A1,A2,A3,…..with positive sign in these constraints. An artificial variable is introduced
even when constraints is of equality type. In the objective function we assign big penalty by subtracting
MA1, MA2, MA3, ..… If the objective function is of maximization type.
Consider the problem:-
Maximization Z max=C1 X1+C2 X2+ C3 X3
a11X1+a12X2+a13X3 ≥b1
a21X1+a22X2+a23X3 ≤b2
a31X1+a32X2+a33X3 ≤b3
X1, X2 , X3 ≥0
Z max = C1 X1+C2 X2+ C3 X3+0S1+0S2+0S3-MA1
i.e. Z- C1 X1-C2 X2- C3 X3-0S1-0S2-0S3+MA1=0 ……….(1)
a11X1+a12X2+a13X3-1S1 +0S2+0S3+1A1=b1 ………. (2)
a21X1+a22X2+a23X3 +0S1 +1S2+0S3+0A1= b2
a31X1+a32X2+a33X3 +01S1 +0S2+1S3+0A1= b3
We now write the objective function free from artificial variable by adding -M times the first constraints to
the objective function. i.e. in equation (1) we add –M times the equation (2)
Z- (C1+M a11) X1-(C2+M a12) X2- (C2+M a13) X3-MS1+0S2+0S3+0A1= -Mb1
Note: - In LPP, if variable x is un-restricted then we take x=xl –xll where xl & xll ≥ 0
Dual simplex Method:-
1) Convert the problem into minimization type
2) Convert all the constraints in less than or equal to type. If any constraints is greater than or equal to
Types multiply throughout by -1 and change the equality sign.
3) Convert all the constraints in to equality by adding slack variables
4) Put this information in a table
5) If all the coefficients in the row of Z are negative and all the right hand constants i.e. b’s are positive
Then the basic feasible solution is obtained. If all the coefficient in the row of Z are negative and
at least one b is negative go to the step (6)
Note: - If all the coefficient in the row of Z are positive the method fail
6) Select the row which contains the most negative number in the column of b’s. Denote it by an arrow
head like .This is the key row and the corresponding variable on the left is the out going variable
7) Find the ratio of the elements in the row of Z to the corresponding elements in the key row i.e.
Cj
xrj
With Xrj <0 Write these ratios in another row below the table.
8) Select the column which contains the smallest ratio and denote it by arrow head like . This is the
4
Key column. The element where the key row & key column intersect is the key elements.
9) Construct another table as in the usual simplex method. Divide each element in the key row by the key
element, so that key element will be unity. Now make all other element in the key column zero by suitable
row operation
Determination of all possible basic solution: -
The LPP form includes m simultaneous linear equations in n unknowns or variable (m<n). we divide the n
variable into
1) n-m variables, to which we assign zero values.
2) The remaining variables, whose values are determined by solving the resulting m equations.
If the m equations yield a unique solution then associated variables are called basic variables and the
Remaining n-m variables are called non basic variables.
L f m
g
= − i i = 0 , j=1, 2, 3,. . . , n and
L
= − gi = 0 , i= 1, 2, 3, . . m
x j x j i =1 x j i
Note:- For above lagrangian
m
L( x, ) = f ( x) − i gi ( x) m<n
i =1
Hessian Bordered matrix is denoted by HB and is given by
Omm Vmn
HB = T
V
nm H nn
5
| | | | H = ....
X 3x1 X 3x2 x32 X 3xn
g m g m g m : :
−−−− : : :
x1 x2 xn mn :
2
: : : :
L 2L 2L
....
2L
Xnx1 Xnx2 Xnx3 2
xn nn
Note:-The matrix HB is called Hessian Bordered matrix then the sufficient condition for Maxima
and Minima can be stated as follow.
Let (x* , λ*)be the stationary point for the Lagrangian function L(x, λ) and H B be the value of
corresponding Hessian Bordered matrix computed at this point then
1) x* is a maximum point if starting with principal minor (determinant) of order (2m+1), the last (n-
m)
Principal minor (determinant) of HB forms alternative sign pattern starting with (-1)m+1
2) x* is a minimum point if starting with principal minor (determinant) of order (2m+1), the last (n-
m)
Principal minor (determinant) of HB have same sign starting with (-1)m
Non-linear programming problem with inequality constraints:-
Kuhn tucker Method:-
Z =f(x), x=(x1, x2, x3… xn ) Subject to gi(x) ≤ bi therefore consider gi(x) +si2 = bi
We define Lgrangian function as
m
L ( x, , s ) = f ( x ) − i gi ( x ) + si2 − bi
i =1
For maximization:- Kuhn-tucker’s necessary &sufficient condition maximization of Z are
(1) L ( x , , s ) = 0 , j= 1,2,3,…..n (2) i gi ( x ) − bi = 0 , i=1,2,3,……m
x j
(3) gi(x) ≤ bi , i=1,2,3……m (4) λi ≥ 0 , i=1,2,3,….…m
For Minimization:- Kuhn-tucker’s necessary &sufficient condition minimization of Z are
(1)
L ( x , , s ) = 0 , j= 1,2,3,…..n (2) i gi ( x ) − bi = 0 , i=1,2,3,……m
x j
(3) gi(x) ≤ bi , i=1,2,3……m (4) λi ≤ 0 , i=1,2,3,….…m