Unit 2
Unit 2
LINEAR PROGRAMMING
PROBLEMS
Chapter Content
2.1 Introduction to linear programming
2.2 Mathematical Model Formulation
2.3 Graphical Solution Method
2.4 The Simplex Solution Method
2.5 Sensitivity Analysis
2.6 Duality in Linear Programming Problems
2.1 Introduction to Linear
Programming
Linear programming is a mathematical technique designed
to aid managers in allocating scarce resources such as labor,
capital, or energy among competing activities.
It reflects, in the form of a model, the organization's attempt
to achieve some objective;
Maximizing profit contribution, production capacity,
Minimizing cots, in view of limited or constrained
Minimization
M1 2 3 2 440
M2 4 - 3 470
M3 2 5 - 430
Example 3.
A toy manufacturer makes three versions of a toy robot. The
first version requires 10 minutes for fabrication and 2 pound
of plastic, the second version requires 12 minutes for
fabrication and 3 pounds of plastic, and the 3 rd version
requires 15 minutes for fabrication and 4 pounds of plastic.
There are 8 hours of fabrication time available and 200
pounds of plastic available for the next production cycle. The
unit profits are Birr 12 for each version 1, Birr 60 for each
version 2, and Birr 72 for each version 3. A minimum of 10
units of each robot must be made to fill backorder.
Formulate an LP model that will determine the optimal
In graphical method:
The inequalities (structural constraints) are considered
to be equations. This is because; one cannot draw a
graph for inequality.
Only two variable problems are considered, because we
can draw straight lines in two-dimensional plane (X-1
axis and X-2 axis).
More over as we have non negativity constraint in the
problem that is all the decision variables must have
positive values always the solution to the problem lies in
first quadrant of the graph.
Cont…
This method consists of the following steps:
Formulate the mathematical model for the given
problem.
Convert the constraints given in the form
inequality to that of equality.
Draw the x and y intercepts.
Plot each of the constraints on the graph.
Identify the feasible (solution) region.
Techniques of Graphical Method
Corner (extreme) point method: this method
includes the following steps.
Identify each of the extreme points of the feasible region.
Find the values of objective function at each extreme
point.
The optimal solution occurs at that corner point which
maximizes objective function in case of maximization
problem.
The optimal solution occurs at that corner point which
minimizes objective function in case of minimization
problem.
1. Maximization Problem
Example: a microcomputer firm is about to start production of two new
microcomputers, X1 and X2. The manager wants to determine how much
of each computer to produce in order to maximize the profit generated by
selling them.
Resources Amount Available
Assembly time 100 hours
Inspection time 22 hours
Storage space 39 cubic feet
Type 1 Type 2
Profit per unit $60 $50
Assembly time per unit 4 hours 10 hours
Inspection time per unit2 hours 1 hour
Storage space per unit 3 cubic feet 3 cubic feet
1. Maximization Problem
The model is:
Maximize Z= 60X1 + 50X2
Subject to: Assembly 4 X 1 +10 X 2 < 100 hours
Inspection 2 X 1 + 1 X 2 < 22 hours
Storage 3 X 1 + 3 X 2 < 39 cubic feet
Where; X1, X2 > 0
Required: Solve the problem using graphic method
Interpret the result
Check resource consumption (availability of slack)
Cont…
Cont.….
Corner Coordinate Point Value of Objective Function
Point (X1, X2) (Z=60X1 + 50X2)
a (0, 10) 60(0) + 50(10) = 500
b (5, 8) 60(5) + 50(8) = 700
c (9, 4) 60(9) + 50(4) = 740
d (11, 0) 60(11) + 50(0) = 660
Interpretation:
For a firm to maximize its profit (740), it should produce 9
units of the Model I microcomputer and 4 units of model II.
Checking resource consumption (availability of slack)
(4*9) + (10*4) = 76 assembly hours
(2*9) + (1*4) = 22 inspection hours
(3*9) + (3*4) = 39 cubic storage space
1. Maximization Problem
A company manufactures two types of boxes, corrugated and
ordinary cartons. The boxes undergo two major processes:
cutting and pinning operations. The profits per unit are Br. 6 and
Br. 4 respectively. Each corrugated box requires 2 minutes for
cutting and 3 minutes for pinning operation, whereas each carton
box requires 2 minutes for cutting and 1 minute for pinning. The
available operating time is 120 minutes and 90 minutes for
cutting and pinning machines.
Required: Determine the optimum quantities
Interpret the result
Check if there is any slack/unused resource
2. Minimization Problem
Example 1:
A person requires at least 10, 12, and 12 units of
6X+2Y > 18
8X+10Y > 40
Y>1
Where; X, Y > 0
Find the values of X and Y which makes the
objective function minimum.
Cont…
Solution:
The coordinates of corner point’s feasible region are:
A = (0, 9), B = (2.27, 2.18), C = (3.75, 1)
Compute objective function value at each corner point
of the feasible region.
Corner point coordinates(x1, x2) Z = 0.1x1+0.07x2
A (0, 9) (0.1x 0) + (0.07 x 9) =0.63
B (2.27, 2.18) (0.1 x 2.27) + (0.07 x2.18) =0.38
C (3.75, 1) (0.1 x 3.75) + (0.07 x 1) = 0.445
Exercise
A company owns two flour mills (A and B) which have
different production capacities for HIGH, MEDIUM and
LOW grade flour. This company has entered contract supply
flour to a firm every week with 12, 8, and 24 quintals of
HIGH, MEDIUM and LOW grade respectively. It costs the
Co. $1000 and $800 per day to run mill A and mill B
respectively. On a day, Mill A produces 6, 2, and 4 quintals of
HIGH, MEDIUM and LOW grade flour respectively. Mill B
produces 2, 2 and 12 quintals of HIGH, MEDIUM and LOW
grade flour respectively.
Required:
How many days per week should each mill be operated in
order to meet the contract order most economically? Solve
Exercise - Mix of Constraints
Example:
Max Z = 10X1 + 20X2
Subject to 2X1 + 4X2 > 16
X1 + 5X2 > 15
X1, X2 > 0
The reason for it may be concluded to be wrong
formulation of the problem such as incorrectly maximizing
instead of minimizing and/or errors in the given problem.
Checking equalities or rethinking the problem statement
will resolve the problem.
Cont…
Slack:
Slack is the amount of a scarce resource that is unused
by a given solution. Slack can potentially exist in a <
constraint. Slack variables are considered in the
objective function by using a coefficient of zero for
each of them. When all the constraints are written as
equalities after adding a slack variable to each of them,
the linear program is said to be in standard form. For
example, in the Assembly constraint 4X1 +10X2 <
100 hrs, the slack value is 100 – [4(9) +10(4)] = 24.
Cont…
Surplus: on the other hand is the amount by which
the optimal solution causes a > constraint to exceed
the required minimum amount. It can be determined
in the same way that slack can, i.e., substitute the
optimal values of the decision variables into the left
side of the constraint and solve. The difference
between the resulting value and the original right
hand side amount is the amount of surplus. Surplus
should also be accounted for in the objective
function by using coefficients of zero like wise.
2.4 THE SIMPLEX SOLUTION
METHOD
Steps in Simplex Method
Basic V. Cj 7 9 0 0 M M
Quantity
X1 X2 S1 S2 A1 A2
M A1 3 6 -1 0 1 0 36
M A2 8 4 0 -1 0 1 64
Zj 11M 10M -M -M M M
100M
Cj-Zj 7-11M 9-10M M M 0 0
Step 3: Determine the Entering and
Leaving Variables
The entering variable is identified as the one
which has the largest negative Cj-Z row value in
the simplex tableau
The leaving variable is the smallest positive ratio
in quantity column
The artificial variables in a minimization problem
Cj 7 9 0 0 M
Basic V. X1 X2 S1 S2 A1 Quantity
A1 M 0 9/2 -1 3/8 1 12
X1 7 1 ½ 0 -1/8 0 8
Zj 7 7/2+9/2M -M 3/8M-7/8 M 56+12M
Cj-Zj 0 11/2-9/2M M 7/8-3/8M 0
Step 5: Develop Third Tableau
Cj 7 9 0 0
Basic V. X1 X2 S1 S2 Quantity
X2 9 0 1 -2/9 1/12 8/3
X1 7 1 0 1/9 -1/6 20/3
Zj 7 9 -11/9 -5/12 212/3
Cj-Zj 0 0 11/9 5/12
Step 6: Check of Optimality
The third tableau represents a final tableau
since it is the optimal solution with entirely
zeros and non-negative values in the C j-Zj row
C5 8 0 0 M
Basic V. X1 X2 S1 S2 A2 Quantity
X1 5 1 1 -2 3 0 200
X2 8 0 1 1 2 0 100
A2 M 0 0 0 -1 1 20
Z 5 13 2 31-M M 1800 +
C-Z 0 -5 -2 -31 +M 0 200M
Even though all Cj - Zj are positive or 0(i.e. the criterion for an optimal solution in a
minimization case), no feasible solution is possible because an artificial variable (A2) remains
in the solution mix.
2. Unbounded Solution
Example: Maximization case
C 6 9 0 0
Basic V. X1 X1 S1 S2 Quantity
X2 9 -1 1 2 0 30 30/-1 = -30
S2 0 -2 0 -1 1 10 10/-2 = -5
Z -9 9 18 0 270
C-Z 15 0 -18 0
C 5 8 2 0 0 0
Basic V. X1 X2 X3 S1 S2 S3 Quantity Ratio
X2 8 ¼ 1 1 -2 0 10 10/1/4 = 40
S2 0 4 0 1/3 -1 1 20 20/4 = 5
S3 0 2 0 2 2/5 0 10 10/2 = 5
Z 2 8 8 16 0 0 80
C-Z 3 0 -6 -16 0 0
Cont…
If a tie of two entering Variables, use following
rules:
If there is a tie between two decision variables,
select arbitrary
If there is a tie between a decision variable and a
slack (or surplus) variable, select the decision
variable to enter into basis first
If there is a tie between slack or surplus variable,
select arbitrary
4. Multiple Optimum Solution
Example: Maximization problem
C 3 2 0 0
Basic V. X1 X2 S1 S2 Quantity
X2 2 3/2 1 1 0 6
S2 0 1 0 ½ 1 3
Z 3 2 2 0 12
C-Z 0 0 -2 0