OR CH-Two 1
OR CH-Two 1
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
3. Media selection
4. Marketing research
5. Portfolio selection
7. Multi-period scheduling
2.2 Mathematical
Model Formulation
Components of LP Model
1. Objective and Objective Function -
a single,
quantifiable objective must be specified by the decision
maker
Maximization
Minimization
2. Decision Variables - unknown quantities to be solved for
3. Constraints - restrictions or limits coming from a variety of
sources
System constraints – involve more than one decision variable
Individual constraints – involve only one variable
Non-negativity constraints – specify that no variable will be
allowed to take on a negative value
4. Parameters – are numerical values in objective function and
constraints
LP Model Example
Steps in Model Formulation
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 3rd 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 production quantities for profit
maximization.
Example 4.
The agriculture research institute suggested to
a farmer to spread out at least 4800kg of a
special phosphate fertilizer and not less than
7200kg of a special nitrogen fertilizer to raise
productivity of crops in his field. There are two
sources for obtaining these- mixtures A and B.
both of these are available in bags weighing
100kg each and they cost birr 40 and birr 24
respectively. Mixture A contains phosphate and
nitrogen equivalent of 20kg and 80kg
respectively, while mixture B contains these
ingredients equivalent of 50kg each.
Formulate an LP model.
Example 5
The orient manufacturing company produces
three type of typewriters Tik-Tik, Mik-Mik, Pik-Pik.
All the three types are required first to be
machined and then to be assembled. The total
available machine time and assembly times are,
respectively, 4000 and 1240 hours per month.
The time requirements for the various types and
the data regarding selling price and costs for the
three are on the next slide.
Formulate the mathematical LP model that may
help us to determine the optimal production
quantities for profit maximization.
Cont…
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 unit 2 hours. 1 hour
Storage space per unit3 cubic feet. 3 cubic feet
1. Maximization Problem
The model is:
Maximize Z= 60X1 + 50X2
Subject to: Assembly 4X 1 +10 X 2 < 100 hours
Inspection 2X 1 + 1X 2 < 22 hours
Storage 3 X 1 + 3X 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.….
Corne Coordinate Value of Objective Function
r Point (Z=60X1 + 50X2)
Point (X1, X2)
a (0, 10) 60(0) + 50(10) = 500
b (5, 8) 60(5) + 50(8) = 700
c (9, 4) 60(9) + 50(4) = 740
Interpretation:
d (11, 0) 60(11) + 50(0) = 660
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
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
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
Required:
a. Formulate this problem as a LPP.
b. Determine the number of days the
gasoline company should operate each
refinery in order to meet the terms of the
above contract most economically (i.e. At a
minimum running cost)
c. Which grade of gasoline would be over
produced?
Quiz
G.J. Breweries Ltd have two bottling plants, one located at ‘G’
and the other at ‘J’. Each plant produces three drinks, whisky,
beer and brandy named A, B and C respectively. The number of
the bottles produced per day are shown in the table. A market
survey indicates that during the month of July, there will be a
demand of 30,000 bottles of whisky, 40,000 bottles of beer and
44,000 bottles of brandy. The operating cost per day for plants at
G and J are 600 and 400 monetary units. For how many days
each plant be run in July so as to minimize the production cost,
while still meeting the market demand?
Formulate this problem as an LP problem and solve that using
graphical method.Drink Plant at
G J
Whisky 1,500 2,000
Beer 3,000 1,000
Brandy 2,000
5,000
Graphical Solutions
for the Special
Cases of LP
i) Unboundedness
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…
Example:
Max Z = 8X1+16X2
Subject to: X1 + X2 < 200 ……. C1
3X1 + 6X2 < 900 ……. C2
X2 < 125 ……. C3
X1, X2 > 0
Cont..
Standardization/Tableau Form/:
Types of constraint Standard form
≤ Add a slack variable
= Add an artificial variable
≥ Subtract a surplus variable
and add an artificial variable
Cont…
2. Develop an Initial Simplex Tableau
Steps in developing initial simplex tableau:
I. List the variables in the model across the top of
the tableau
II. Next fill-in the parameters of the model in the
appropriate rows and columns
III. Add two columns to the left side of the tableau.
The first column is a list of variables called Basis.
IV. The C at the top column indicates that the
values in that column and the values in that row
are objective function coefficients.
Cont…
V. The last column at the right is called the
quantity column. It refers to the right hand
side values (RHS) of the constraints.
VI. There are two more rows at the bottom of the
tableau. The first raw is a Z-row. For each
column the Z – value is obtained by
multiplying each of the number of the column
by their respective row coefficient in column C.
VII. The last raw is Cj-Z row. The values in this row
are also calculated column by column. For
each Column, the value in row Z is subtracted
form the C value in the top row.
Cont…
3. Determining the Entering Variable:
For a maximization problem; the entering variable is
identified as the one which has the largest positive value in
Cj-Z row.
This column corresponding to the entering variable is called
pivot column.
In a minimization problem, the entering variable is the one
which has the largest negative Cj-Z row value in the simplex
tableau.
4. Determining the Leaving Variable:
The leaving variable is identified as the one with the smallest
non-negativity ratio for quantity divided by respective
positive pivot columnar entries.
The row of the leaving variable is pivot row.
Cont...
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
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