Dr. R K Singh Professor, Operations Management Management Development Institute, Gurgaon
Dr. R K Singh Professor, Operations Management Management Development Institute, Gurgaon
R K Singh
Professor, Operations Management
Management Development Institute,
Gurgaon
Objectives
To Understand the fundamentals of mathematical
model building process.
To learn different techniques commonly used in
various application areas along with assumptions and
limitations.
To apply such techniques in real life situations for
solving problems.
To develop an insight of scientific decision making
under limited resources.
Operations Research Definitions
Operations research is the application of the methods of
science to complex problems in the direction and
management of large systems of men, machines, materials
and money in industry, business, government and defence.
Operational Research Society, UK
Contd...
Structure of LP Model
The objective goal function is expressed in terms of decision
variables to optimize the criterion of optimality (a measure of
performance) such as profit, cost, revenue, distance, etc. The
general objective function of LP model is expressed as:
Optimize (maximize or minimize) Z = c1x1 + c2x2 + + cnxn
where, Z is the measure-of-performance variable, which is a
function of x1, x2, , xn. Quantities c1, c2, , cn are parameters that
represent the contribution per unit respective variable to the
measure-of-performance Z.
Contd
Assumptions of a LP Model
Linearity (or Proportionality): The amount of each resource
used (or supplied) and its contribution to the profit (or cost) in
objective function must be proportional to the value of each
decision variable. For example, if production of 1 unit of a
product uses 5 hours of a particular resource, then making 3
units of that product must use 3 5 = 15 hours of that resource.
Contd...
Guidelines on LP Model Formulation
Contd...
General Mathematical Model of LP Problem
Contd...
General Mathematical Model of LP Problem
where, the cjs are coefficients representing the per unit
contribution of decision variable xj, to the value of objective
function. The aijs are called the technological coefficients or input-
output coefficients and represents the amount of resource, say i,
consumed per unit of variable (activity) xj. The bi represents the
total availability of the ith resource. If any bi < 0, then both sides of
constraint i can be multiplied by 1 to make bi > 0 and reverse the
inequality of the constraint. In the general LP problem, the
expression (, =, ) implies that each constraint may take only
one of the three possible forms: (i) less than or equal to (); (ii)
equal to (=); (iii) greater than or equal to ()
Examples of LP Model Formulation
Examples on Production
Example 1: A manufacturing company is engaged in producing three types of
products: A, B and C. The production department produces, each day,
components sufficient to make 50 units of A, 25 units of B and 30 units of C.
The management is confronted with the problem of optimizing the daily
production of products in assembly department where only 100 man hours are
available daily to assemble the products. The following additional information
is available. Type of Profit Contribution Assembly Time per
Product per Unit of Product Product (h)
(Rs )
A 12 0.8
B 20 1.7
C 45 2.5
Example 1
The company has a daily order commitment for 20 units of products A and a
total of 15 units of products B and C. Formulate this problem as an LP model
so as to maximize the total profit.
Solution
LP Model Formulation: The data of the problem is summarized as follows:
Contd...
Example 5
To have a balanced campaign, the owner has determined the following
restrictions:
No more than four television advertisements
No more than four advertisements in the magazine
No more than 60 per cent of all the advertisements in newspaper and
magazine
There must be at least 45,00,000 exposures to families with incomes
over Rs 50,000.
Formulate this problem as a LP Model to determine the number of each
type of advertisement to be given so as to maximize the total number of
exposures.
A 4 3 1 18
B 7 12 5 10
C 8 9 4 10
D 6 20 8 32
E 10 15 6 20
F 3 6 3 7
Cash 0 0 0 0
Example 6
The objective of the company is to maximize the return on its investments.
The guidelines for selecting the portfolio are:
The average length of the investment for the portfolio should not
exceed 7 years.
The average risk for the portfolio should not exceed 5.
The average growth potential for the portfolio should be at least 10%.
At least 10% of all available funds must be retained in the form of cash
at all times.
Contd...
Example 6
LP Model Formulation
Let xj = proportion of funds to be invested in the jth investment
alternative ( j = 1, 2, , 7)
The LP Model
Maximize (total return) Z = 0.03x1 + 0.12x2 + 0.09x3 + 0.20x4 + 0.15x5 +
0.06x6 + 0.00x7
subject to the constraints
Length of investment constraint: 4x1 + 7x2 + 8x3 + 6x4 + 10x5 + 3x6 + 0x7
7
Risk level constraint: x1 + 5x2 + 4x3 + 8x4 + 6x5 + 3x6 + 0x7 5
Growth potential constraint:
0.18x1 + 0.10x2 + 0.10x3 + 0.32x4 + 0.20x5 + 0.07x6 + 0x7 0.10
Cash requirement constraint x7 0.10
Proportion of funds constraint:
x1 + x 2 + x3 + x4 + x5 + x6 + x7 = 1
and x1, x2, x3, x4, x5, x6, x7 0
Linear Programming-Graphical Method-
Important Definitions
Solution: The set of values of decision variables xj (j = 1, 2, . . ., n) which
satisfy the constraints of an LP problem is said to constitute solution to that
LP problem.
1-50
Basic feasible solution: That is, all basic variables assume non-negative
values. Basic feasible solutions are of two types:
1-51
Extreme Point Solution Method
Coordinates of all corner (or extreme) points of the feasible region (space or
area) are determined and then values of the objective function at these points
are computed and compared because an optimal solution to any LP problem
always lie at one of the corner (extreme) points of the feasible solution space.
1-52
The final shaded area is called the feasible region (or solution space) of
the given LP problem. Any point inside this region is called feasible
solution and provides values of x1 and x2 that satisfy all constraints.
1-53
LP Model: Example
RESOURCE REQUIREMENTS
Labor Clay Revenue
PRODUCT (hr/unit) (lb/unit) ($/unit)
Bowl 1 4 40
Mug 2 3 50
Decision variables
x1 = number of bowls to produce
x2 = number of mugs to produce
LP Formulation: Example
Maximize Z = $40 x1 + 50 x2
Subject to
x1 + 2x2 40 hr (labor constraint)
4x1 + 3x2 120 lb (clay constraint)
x1 , x2 0
40
4 x1 + 3 x2 120 lb
30
20 Area common to
both constraints
10
x1 + 2 x2 40 hr
0 | | | | | |
10 20 30 40 50 60 x1
Computing Optimal Values
x2
40
4 x1 + 3 x2 120 lb
30
20
x1 + 2 x2 40 hr
10
8
| x1
24
0 | | |
10 20 30 40
Z = $50(24) + $50(8) = $1,360
Extreme Corner Points
x1 = 0 bowls
x2 x2 = 20 mugs
x1 = 24 bowls
Z = $1,000
40 x2 = 8 mugs
Z = $1,360 x1 = 30 bowls
30 x2 = 0 mugs
20 A
Z = $1,200
10
B
0 | | | C|
10 20 30 40 x1
Example : Use the graphical method to solve the following LP problem.
Maximize Z = 15x1 + 10x2
subject to the constraints
4 x1 + 6 x2 360
3 x1 + 0 x2 180
0 x1 + 5 x2 200
and x1, x2 0.
1-59
Feasible
Region Feasible
Region
1-60
i) The coordinates of extreme points of the feasible region are: O = (0, 0),
A = (60, 0), B = (60, 20), C = (30, 40), D = (0, 40).
ii) Evaluate objective function value at each extreme point of the feasible
region :
iii) Since maximum value of Z = 1,100 is achieved at the point extreme B (60,
20). Hence the optimal solution to the given LP problem is: x1 = 60, x2 = 20
and Max Z = 1,100.
1-61
Example 2: Use the graphical method to solve the following LP problem.
Maximize Z = 2x1 + x2
subject to the constraints
x1 + 2x2 10
x1 + x2 6
x1 x2 2
x1 2x2 1
and x1, x2 0
1-62
Maximize Z = 2x1 + x2
.
subject to the constraints
x1 + 2x2 10
x1 + x2 6
x1 x2 2
x1 2x2 1
and x1, x2 0
Feasible
Region
1-63
Extreme Point Coordinates Objective Function Value
(x1, x2) Z = 2x1 + x2
1-64
Example 3: Use the graphical method to solve the LP problem.
1-65
Minimize Z = 3x1 + 2x2
subject to the constraints
5x1 + x2 10
x1 + x2 6
x1 + 4x2 12
and x1, x2 0
1-66
Extreme Point Coordinates Objective Function Value
(x1, x2) Z = 3x1 + 2x2
1-67
Example 4: Use the graphical method to solve the LP problem.
Minimize Z = x1 + 2x2
subject to the constraints
x1 + 3x2 10
x1 + x2 16
x1 x2 12
and x1, x2 10.
1-68
Minimize Z = x1 + 2x2
subject to the constraints
x1 + 3x2 10
x1 + x2 16
x1 x2 12
and x1, x2 10.
Feasible
Region
1-69
Extreme Point Coordinates Objective Function Value
(x1, x2) Z = x1 + 2x2
1-70
Example 5: Use the graphical method to solve the LP problem.
Maximize Z = 2x1 + 3x2
subject to the constraints
x1 + x2 30
x2 3
0 x2 12
0 x1 20
x1 x2 0
and x1, x2 0
Maximize Z = 2x1 + 3x2
subject to the constraints
x1 + x2 30
x2 3
0 x2 12
0 x1 20
x1 x2 0
and x1, x2 0
Feasible
Region
1-72
Extreme Point Coordinates Objective Function Value
(x1, x2) Z = 2x1 + 3x2
1-73
Example 6: A firm makes two products X and Y, and has a total production
capacity of 9 tones per day, X and Y requiring the same production
capacity. The firm has a permanent contract to supply at least 2 tones of X
and at least 3 tones of Y per day to another company. Each tone of X
requires 20 machine hours of production time and each tone of Y requires
50 machine hours of production time. The daily maximum possible number
of machine hours is 360. All the firms output can be sold, and the profit
made is Rs. 80 per tone of X and Rs. 120 per tone of Y. It is required to
determine the production schedule for maximum profit and to calculate this
profit.
1-74
Fig. 7 Graphical Solution of LP Problem -6
1-75
Extreme Point Coordinates Objective Function Value
(x1, x2) Z = 80x1 + 120x2
1-76
Example 7: A manufacturer produces two different models: X and Y, of the
same product. Model X makes a contribution of Rs 50 per unit and model
Y, Rs 30 per unit towards total profit. Raw materials r1 and r2 are required
for production. At least 18 kg of r1 and 12 kg of r2 must be used daily. Also
at most 34 hours of labour are to be utilized.
1-77
Fig. 8 Graphical Solution of LP Problem - 7
1-78
Extreme Point Coordinates Objective Function Value
(x1, x2) Z = 50x1 + 30x2
Since the maximum value of Z = 560 occurs at the point C (10, 2), the
manufacturer should produce x1 = 10 units of model X and x2 = 2
units of Y to yield a maximum profit of Rs. 560.
1-79
Isoprofit Line Solution Method
Isoprofit Line Solution Method
Once the feasible region has been graphed, we need to
find the optimal solution from the many possible
solutions
The speediest way to do this is to use the isoprofit line
method
Starting with a small but possible profit value, graph the
objective function
Move the objective function line in the direction of
increasing profit while maintaining the slope
The last point it touches in the feasible region is the
optimal solution
Kirti Furniture Company
The Kirti Furniture Company produces inexpensive tables
and chairs
Processes are similar in that both require a certain amount
of hours of carpentry work in Carpentry Dept and painting
and varnishing in the P&V Dept.
Each table takes 4 hours of carpentry and 2 hours of
painting and varnishing.
Each chair requires 3 hours of carpentry and 1 hour of
painting and varnishing.
There are 240 hours of carpentry time available and 100
hours of painting and varnishing.
Each table yields a profit of $70 and each chair a profit of
$50.
Kirti Furniture Company
The company wants to determine the best combination of tables and
chairs to produce to reach the maximum profit
HOURS REQUIRED TO
PRODUCE 1 UNIT
(T) (C) AVAILABLE HOURS
DEPARTMENT TABLES CHAIRS THIS WEEK
Carpentry 4 3 240
subject to
100
This Axis Represents the Constraint C 0
80
Number of Chairs
60
40 This Axis Represents the
Constraint T 0
20
| | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
Graphical Representation of a Constraint
60
40
(T = 60, C = 0)
20
| | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
Graphical Representation of a
Constraint
C Any point on or below the constraint plot
will not violate the restriction
100
Any point above the plot will violate the
restriction
80
Number of Chairs
60
(30, 40) (70, 40)
40
20
(30, 20)
| | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
Graphical Representation of a
Constraint
The point (30, 40) lies on the plot and exactly
satisfies the constraint
4(30) + 3(40) = 240
The point (30, 20) lies below the plot and
satisfies the constraint
4(30) + 3(20) = 180
The point (70, 40) lies above the plot and does
not satisfy the constraint
4(70) + 3(40) = 400
Graphical Representation of a
Constraint
C
100 (T = 0, C = 100)
80 Graph of painting and vanishing
Number of Chairs
constraint equation
60
40
(T = 50, C = 0)
20
| | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
Graphical Representation of a
Constraint
To produce tables and chairs, both departments must
be used
We need to find a solution that satisfies both
constraints simultaneously
A new graph shows both constraint plots
The feasible region (or area of feasible solutions) is
where all constraints are satisfied
Any point inside this region is a feasible solution
Any point outside the region is an infeasible solution
Graphical Representation of a
Constraint
C
Feasible solution region for Kirti Furniture
100
80 Painting/Varnishing Constraint
Number of Chairs
60
40
Carpentry Constraint
20 Feasible
Region
| | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
Isoprofit Line Solution Method
C Isoprofit line at $2,100
100
80
Number of Chairs
60
$2,100 = $70T + $50C
(0, 42)
40
(30, 0)
20
| | | | | | | | | | | |
0 20 40 60 80 100 T
Number of Tables
Isoprofit Line Solution Method
C Four isoprofit lines
100
$3,500 = $70T + $50C
80
Number of Chairs
8
6
Region Satisfying
4 Third Constraint
2
0 | | | | | | | | | |
2 4 6 8 X1
X1 5
15
X2 10
10
Feasible Region
5
X1 + 2X2 15
0 | | | | |
5 10 15 X1
Four Special Cases in LP
Redundancy
A redundant constraint is one that does not affect
the feasible solution region
One or more constraints may be more binding
This is a very common occurrence in the real world
It causes no particular problems, but eliminating
redundant constraints simplifies the model
Four Special Cases in LP
A problem with a X2
redundant 30
constraint
25
2X1 + X2 30
20
Redundant
Constraint
15
X1 25
10
X1 + X2 20
Feasible
5
Region
0 | | | | | |
5 10 15 20 25 30 X1
Four Special Cases in LP
Alternate Optimal Solutions
Occasionally two or more optimal solutions may
exist
Graphically this occurs when the objective
functions isoprofit or isocost line runs perfectly
parallel to one of the constraints
This actually allows management great flexibility in
deciding which combination to select as the profit
is the same at each alternate solution
Four Special Cases in LP
Example of X2
alternate optimal 8
solutions
7
6 A
Optimal Solution Consists of All
5 Combinations of X1 and X2 Along the
AB Segment
4
2
B Isoprofit Line for $12
1 Feasible Overlays Line Segment AB
Region
0 | | | | | | | |
1 2 3 4 5 6 7 8 X1
Sensitivity Analysis
Optimal solutions to LP problems thus far have been
found under deterministic assumptions
This means that we assume complete certainty in the
data and relationships of a problem
But in the real world, conditions are dynamic and
changing
We can analyze how sensitive a deterministic solution is
to changes in the assumptions of the model
This is called sensitivity analysis or optimality analysis
Sensitivity Analysis
Sensitivity analysis often involves a series of what-if?
questions concerning constraints, variable coefficients,
and the objective function
One way to do this is the trial-and-error method where
values are changed and the entire model is resolved
The preferred way is to use an analytic postoptimality
analysis
After a problem has been solved, we determine a range
of changes in problem parameters that will not affect
the optimal solution or change the variables in the
solution