Linear Programming Problem
Linear Programming Problem
Standard Form
Any LPP is said to be in standard form if it has following characteristic:
1) Objective function should be in maximization type
[ If objective function is in min. form then multiply it with (-) minus to convert it to max.
form] i.e.
2) The R.H.S. of all the constraints should be positive
3) All Constraints are expressed as equalities by adding slack variable to the L.H.S.
constraints or by subtracting surplus from L.H.S. constraints.
4) Along with Subtracting surplus variable, we also add artificial variable to the L.H.S of
constraints.
5) If a constraints is equality then only add artificial variable to L.H.S
6) All the Slack, Surplus and artificial variable should also be added to objective functions
with coefficient zero. For slack & surplus variable coefficient (-)minus M for artificial
variable if objective function is to be maximized & coefficient (+)plus M for artificial
variable if objective function is to be minimized.
[ If objective function is in min. form then multiply it with (-) minus to convert it to max. form]
i.e.
2) Convert all constraints to equality form by adding slack, surplus, artificial variable whenever
necessary keep R.H.S. of all constraints positive. Also add these variable to objective functions with
necessary coefficients.
3) Construct Simplex table as follows:-
Coefficient of all variable
from objective function
LIST OF ALL MAIN RATIO =
VARIABLE + LIST OF
COEFFICIENT SLACK/SURPLUS/ARTIFICIAL
OF VARIABLE
VARIABLE IN THIS COEFFICIENT OF ALL THE
VARIABLE ABOVE VARIABLE FROM
WHO CONSTRAINTS
COLUMN FORM
FROM IDENTITY
OBJECTIVE MATRIX
FUNCTION
.
4) Select the most positive value from row . The column corresponding to this value is called
key column and the corresponding variable is incoming variable.
5) Divide column by key column and note the ratios in the ratio column. Select least positive value
from the ratio column. The corresponding row is called key row & the corresponding variable in
is out-going.
6) The Column element to key row & key column is called pivot element, make pivot element ‘1’ and
remaining element of that column is zero (Using row operation of matrices)
1) Find all the basic solutions of the following system of equations. Identify in each case basic and
non-basic variables.
Investigate whether the basic solutions are degenerate or not. Find also the basic feasible solutions.
Solution:-
2 YES NO
OUT GOING
INCOMING ,
3 YES NO
OUTGOING
INCOMING
2) Solve the following L.P.P by simplex method
Maximize z = 3
Subject to:-
Max z = 3
Subject to:-
0 3 2 5 0 0 0
Ratio=
0 1 2 1 1 0 0 430 430
0 3 0 2 0 1 0 460 230
0 1 4 0 0 0 1 420
. 0 0 0 0 0 0
3 2 5 0 0 0
1 3 2 5 0 0 0
Ratio=
2 3 2 5 0 0 0
Ratio=
( ) ( ) ( )
1) Maximize z = 10
Subject to:-
2) Minimize z =
Subject to:-
-4
3) Maximize z =
Subject to:-
-2
Type 2) BIG M-METHOD
1) Maximize z = 3
Subject to:-
Iteration 0 3 -1 -M 0 0 0
Ratio=
-M 2 1 1 -1 0 0 2 1
0 1 3 0 0 1 0 3 3
0 0 1 0 0 0 1 4
. -2M -M -M M 0 0
3+2M -1+M 0 -M 0 0 And
Iteration 1
Ratio=
3 1 1/2 1/2 -1/2 0 0 1 -2
0 0 5/2 -1/2 1/2 1 0 2 4
0 0 1 0 0 0 1 4
. 3 3/2 3/2 -3/2 0 0
0 -5/2 -M- 3/2 0 0 And
Iteration 2
3 1 3 0 0 1 0 3
0 0 5 -1 1 2 0 4
0 0 1 0 0 0 1 4
. 3 9 0 0 3 0
0 -10 -M 0 0 0
( )
1) Maximize z =
Subject to:- 2
2) Maximize z =
Subject to:-
3) Minimize z =
Subject to:-
[ DUAL SIMPLEX]
ALGORITHM:-
2) Convert all constraints to equality by adding only slack variable to the L.H.S. of the constraints.
4) Select Most negative value from column. The corresponding row is key row & the corresponding
element is outgoing variable
5) Divide row by the key row & denote it by . i.e. row. Select least negative value
from row. The corresponding column is key column and the corresponding variable is incoming
variable .
6) The common element to key row & key column is pivot element. Reduce pivot element to one &
remaining elements of that column to zero using row operations only.
Subject to:- 2
Solution:- Minimize z =
Subject to:- -2
Iteration 0 2 2 4 0 0 0
0 -2 -3 -5 1 0 0 -2
0 3 1 7 0 1 0 3
0 1 4 6 0 0 1 5
0 0 0 0 0 0 0
.
2 2 4 0 0 0
-1 -2/3 -4/3 0
Iteration 1
2 2/3 1 5/3 -1/3 0 0 2/3
0 7/3 0 16/3 1/3 1 0 7/3
0 -5/3 0 -2/3 4/3 0 1 7/3
,
Problem for practice:-
1) Maximize z =
Subject to:-
2) Minimize z =2
Subject to:-
3) Minimize z =
Subject to:-
Principle of Duality
1) If the objective function is of Max. type then all the constraints should be less than equal to type[
If the objective function is of Min. type then all the constraints should be greate than equal to
type[
Eg: If
1) Min z =
Subject to:-
2) Max z =
Subject to:-
, is unrestricted