Linear Programming: Friday, August 13, 2021 1 Dr.G.Suresh Kumar@KL University
Linear Programming: Friday, August 13, 2021 1 Dr.G.Suresh Kumar@KL University
xj = decision variables
bi = constraint levels
cj = objective function coefficients
aij = constraint coefficients
Friday, August 13, 2021 Dr.G.Suresh Kumar@KL 13
University
Solutions of LPP
• A set of values x1, x2, …, xn which satisfies
the constraints of LPP is called its
solution.
• Any solution to a LPP which satisfies the
non-negativity restrictions is called its
feasible solution.
• Any feasible solution which maximizes or
minimizes the objective function is called
its optimal solution.
Friday, August 13, 2021 Dr.G.Suresh Kumar@KL 14
University
Solutions of LPP
• A solution is obtained by setting n-m variables to zero
(if m equality constraints and n variables of LPP) is
called a basic solution.
• Basic solution of LPP is also satisfies the non-
negativity restrictions is called basic feasible
solution.
• Basic feasible solution which maximizes or minimizes
the objective function is called its optimal solution.
• A basic feasible solution in which all basic variable are
non-zero is called a non-degenerate basic feasible
solution otherwise it is a degenerate basic feasible
solution.
Friday, August 13, 2021 Dr.G.Suresh Kumar@KL 15
University
Problem#1
• Find all the basic solutions of the following
system of equations identifying in each
case the basic and non-basic variables.
2x1 + x2 + 4x3 = 11
3x1 + x2 + 5x3 = 14
Ans : (3, 5, 0) basic x1, x2 non-basic x3.
(0, 3, -1) basic x2, x3 non-basic x1.
(1/2, 0, 5/2) basic x1, x3 non-basic x2.
Friday, August 13, 2021 Dr.G.Suresh Kumar@KL 16
University
Problem#2
• Find an optimal solution to the following LPP
by computing all basic solutions and then
finding one that maximizes objective function.
Max. Z = 2x1 + 3x2 + 4x3 + 7x4
Subject to 2x1 + 3x2 - x3 + 4x4 = 8
x1 - 2x2 + 6x3 -7x4 = -3
and x1, x2, x3, x4 ≥ 0.
Ans : (0, 0, 44/17, 45/17) and Z=28.9
Friday, August 13, 2021 Dr.G.Suresh Kumar@KL 17
University
Slack variables
• If the constraints of a general LPP be
ai1x1 + ai2x2 + ... + ainxn ≤ bi (i = 1, 2,…),
then the non-negative variables si which
satisfy
ai1x1 + ai2x2 + ... + ainxn + si = bi (i = 1, 2,…)
are called slack variables.
0 s1 2 11 1 1 0 0 2
0 s2 10 5 2 0 1 0 2
0 s3 12 3 8 0 0 1 4
Zj-cj -5 -3 0 0 0
5 x1 2 1 1 1 0 0
0 s2 0 0 -3 -5 1 0
0 s3 6 0 5 -3 0 1
Zj-cj 0 2 5 0 0
0 s1 7 3 -1 2 1 0 0 --
0 s2 12 -2 -4 0 0 1 0 --
0 s3 10 -4 33 8 0 0 1 10/3
Zj-cj 1 -3 3 0 0 0
0 s1 31/3 5/3
5/3 0 14/3 1 0 1/3 31/5
Zj-cj -3 0 11 0 0 1
0 s2 8000 7 10 8 0 1 0 800
0 s3 1000 1 1 1 0 0 1 1000
Zj-cj -2 0 12 0 4 0
Maximum Z= 30(250)+40(625)+20(0)
= 32500
Friday, August 13, 2021 Dr.G.Suresh Kumar@KL 45
University
Problem#4
• A firm produces three products which are
processed on three machines. The
relevant data is given below
Machine Time per unit (Minutes) Machine
Product A Product B Product C capacity
(minute/day)
M1 2 3 2 440
M2 4 -- 3 470
M3 2 5 -- 430
Friday, August 13, 2021 Dr.G.Suresh Kumar@KL 46
University
Problem#4
The profit per unit for product A, B and C is
Rs. 4, Rs. 3 and Rs.6 respectively.
Determine the daily number of units to be
manufactured for each product. Assume
that all the units produced are consumed
in the market.
0 s1 2 2 11 1 0 0 2
-M A 12 3 4 0 -1 1 3
2 x2 2 2 1 0 0 0
-M A 4 -5 0 -4 -1 1
Zj-cj -1+5M 0 4M M 0