Linear Programming-Solving LPP by
Linear Programming-Solving LPP by
Simplex Method
1
For LPPs with several decision variables (if they are more than two),
two we may
not be able to graph the feasible region.
“Standard" form.
a) All the constraints should be expressed as equations by adding slack or surplus and/or artificial
variables.
b) The right-hand side of each constraint should be made non-negative; if not, this should be done by
x1 ; … xn, s1, s2 ≥ 0
where the objective is maximized, the constraints are equalities and the variables
are all nonnegative.
4
where si ≥ 0.
where si ≥ 0.
5
Steps for Simplex Tabular Form
2. Obtain a basic feasible solution (bfs) or initial simplex tableau from the
standard form
4. If the current bfs is not optimal, determine which non-basic variable should
become a basic variable and which basic variable should become a non-basic
variable to find a new bfs with a better objective function value.
5. Go back to step 3.
7
Step 4 construct the initial tabula
8
Step 4 construct the initial tabula
9
Step 5 choose the entering variable with maximum positive number in cj-zj
row
Step 6 choosing the leaving variable ration RHS
10
11
Minimization Problem
12
MINIMIZATION PROBLEMS
Minimize Z with inequalities of constraints in “> “form
There are two methods to solve minimization LP problems:
1. Direct method/Big M-method/
Using artificial variables
2. Conversion method
Minimization by maximizing the dual
15
The Big M-method
/Charnes Penalty Method/
The Big-M Method is a method which is used in removing artificial
variables from the basis .In this method; we assign coefficients to artificial
variables, undesirable from the objective function point of view.
If objective function Z is to be minimized, then a very large positive price
(called penalty) is assigned to each artificial variable.
Similarly, if Z is to be maximized, then a very large negative price (also
called penalty) is assigned to each of these variables.
Following are the characteristics of Big-M Method:
High penalty cost (or profit) is assumed as M
M is assigned to artificial variable A in the objective function Z.
Big-M method can be applied to minimization as well as maximization
problems with the following distinctions:
1. Minimization problems
16
-Assign +M as coefficient of artificial variable A in the objective function Z
Maximization problems:
-Here –M is assigned as coefficient of artificial variable A in the objective
function Z
Coefficient of S (slack/surplus) takes zero values in the objective function Z
For minimization problem, the incoming variable corresponds to the
highest negative value of Cj-Zj.
Solution is optimal when there is no negative value of Cj-Zj.(For
minimization case)
Example:
1. Minimize Z=25x1 +30x2
Subject to:
20x1+15x2 > 100
2x1+ 3x2 > 15
x 1, x2 >0
17
Solution
Step 1
Standardize the problem
Minimize Z=25x1 +30x2 +0s1+0s2 +MA1+MA2
Subject to:
20x1+15x2- s1+A1 = 100
2x1+ 3x2 –s2+A2 = 15
x1, x2 , s1, s2 ,A1 ,A2 > 0
Step 2
Initial simplex tableau
The initial basic feasible solution is obtained by setting x1= x2= s1= s2=0
No production, x1= x2= s1=0==>20(0) +15(0) - 0+A1 = 100 ==> A1 = 100
x1= x2= s2=0==>0(0)+3(0) - 0+A2 =15==> A2 = 15
18
19
20
Simplex Problem (Mixed
Constraints)
Simplex Problem (Mixed Constraints) 21
Assign zero co-efficient to the slack variables and surplus variables in the objective function
22
Exercise
Minimize Z=60x1 + 80x2
St
X2 ≥ 200
X1≤400
X1 + X2 =500
X1, X2 ≥ 0
Assignment for group 1 (15%)
23
An Air force is experimenting with three type of bombs P, Q and R in which
three kinds of explosive Viz. A, B and C will be used. Taking the various factors
in to consideration, it has been decided to use the maximum 600 KG of
explosive A, at least 480 KG of explosive B and exactly 540 of explosive C.
bomb P requires 3, 2, 2 KG of A, B and C respectively. Bomb Q requires 1, 4, 3
KG of A, B and C respectively. Bomb R requires 4, 2, 3 KG of A, B and C
respectively. Now bomb P will give the equivalent of 2 tons of explosive, bomb
Q will give 3 tone explosive and bomb R will give 4 tone explosive. Under what
production schedule can the Air force make the biggest bang?
Assignment for group 2 (15%)
24
The first way of stating linear programming problem is called the primal of the problem.
Similarly each LP minimizing problem has its corresponding dual maximizing problem.
Optimal solution for the primal and the dual are equivalent but they are derived through
alternative procedures.
Formulating the dual problem from a given primal is not difficult, and once it is
formulated, the solution procedure is exactly the same as for any LP.
Formulation of the Dual Problem
28
Primal problem