LPP Final
LPP Final
• For S2 constraint, RHS is 60,000 and Optimum solution max z is 63750. If RHS of S2 increased by 1
unit ie 60001
Prepared by Dr. Sneha Amre
As RHS increased by 1 unit the Optimum solution increased by 5 units
and its already mentioned in shadow price column.
Infeasibility
• A linear programming problem is said to be infeasible if there is no
solution that satisfies all the constraints. It represents a state of
inconsistency in the set of constraints.
• A feasible solution for a linear program is a solution that satisfies
all constraints that the program is subjected. It does not violate
even a single constraint
Source : i
Destination: j
•m = number of sources (i = 1 … m)
•n = number of destinations (j = 1 … n)
•c i,j = unit cost of shipping from source i to destination j
•x i,j = amount of prodts shipped from source i to
destination j Prepared by Dr. Sneha Amre
… LPP Formulation of a Transportation Problem
The linear programming formulation in terms of the amounts shipped
from the sources to the destinations, xij , can be written as
O b j e c t i ve F u n c t i o n: M i n i m i ze total transportation cost
n m
Min Z = ∑∑ ( c ij∗ x ij )
j=1 i=1
S u b j e c t to constraints
∑
m
( x ij ) ≤ si for e a c h s o u rc e i ( s u p p l y constraints i.e. max
i= 1 number of products that can be sent from source)
∑
n ≥ d j for each destination j (destination/demand
( x ji ) constraints i.e. min number of products that needs to be
j=1
shipped from source)
To
From D1 D2 D3 Supply
S1 15 30 20
50
30 40 35
S2 30
Demand 25 45 10
… Numericals
Decision Variables
x11 = No of units transported from S1 to D1
x12 = No of units transported from S1 to D2
x13 = No of units transported from S1 to D3
x21 = No of units transported from S2 to D1
x22 = No of units transported from S2 to D2
x23 = No of units transported from S2 to D3
Objective Function
Min Z = 15 x11 + 30 x12 + 20 x13 + 30 x21 + 40x22 + 35x23
… Numericals
Subject to constraints
Supply constraints
x11 + x12 + x13 ≤ 50
x21 + x22 + x23 ≤ 30
Demand constraints
x11 + x21 25
x12 + x22 45
x13 + x23 10
x11, …, x23 0
Example 2
Min Z = ∑∑ ( c ij ∗ x ij )
i=1 j=1
Subject to constraints
∑
n
( x ij ) = 1
j= 1
∑
n
( x ij ) = 1
i=1
xij ≥ 0
… Numericals
• There are 3 jobs A, B, and C and three machines X, Y, and Z. All the jobs
can be processed on all machines. The time required for processing job
on a machine is given below in the form of matrix. Formulate as an LPP
to minimize the total processing time.
Machines
Job
X Y Z
A 11 16 21
B 20 13 17
C 13 15 12
… Numericals
Decision Variables
x11 = Time of job A on machine X
x12 = Time of job A on machine Y
x13 = Time of job A on machine Z
x21 = Time of job B on machine X
x22 = Time of job B on machine Y
x23 = Time of job B on machine Z
x31 = Time of job C on machine X
x32 = Time of job C on machine Y
x33 = Time of job C on machine Z
Objective Function
Min Z = 11 x11 + 16 x12 + 21 x13 + 20 x21 + 13x22 + 17x23 + 13x31 + 15 x32 + 12x33
… Numericals
Subject to constraints
Each job must be assigned to one machine
x11 + x12 + x13 = 1
x21 + x22 + x23 = 1
x31 + x32 + x33 = 1
x11, …, x33 0