Linear Programming - OR
Linear Programming - OR
1
Decision Making
Decision Making involves the use of a rational process for
selecting the best of several alternatives.
The goodness of a selected alternative depend on the
quality of the data used in describing the decision
situation.
From this standpoint, a decision- making process can fall
into one of three categories:
3
Linear Programming (LP)
4
Examples of Business Problems for Modeling
1. A manufacturer wants to develop a production
schedule and inventory policy that will satisfy
sales demand in future periods and same time
minimize the total production and inventory
cost.
5
Typical Applications of Linear
Programming contd…
3. A marketing manager wants to determine how to
best allocate a fixed advertising budget among
alternative advertising media such as radio, TV,
newspaper, and magazines. The goal is to
maximize advertising effectiveness.
7
Constructing Linear Programming
Models contd…
Step I
Identify the unknown variables to be
determined (decision variables), and
represent them in terms of algebraic
symbols.
9
Three basic steps in constructing a linear
programming model:
Step II
Identify all the restrictions or
constraints in the problem and
express them as linear equations or
inequalities which are linear functions
of the unknown variables.
10
Three basic steps in constructing a linear
programming model:
Step III
Identify the objective or criterion
and represent it as a linear
function of the decision variables,
which is to be maximized or
minimized.
11
Assumptions of Linear Programming
Certainty.
In all LP models it is assumed that, all the model
parameters such as availability of resources, profit (or
cost) contribution of a unit of decision variable and
consumption of resources by a unit of decision variable
must be known with certainty and constant.
Divisibility (Continuity)
The solution values of decision variables and resources
are assumed to have either whole numbers (integers) or
mixed numbers (integer or fractional). However, if only
integer variables are desired, then Integer programming
method may be employed.
12
Assumptions of Linear Programming
Additivity
The value of the objective function for the given value
of decision variables and the total sum of resources
used, must be equal to the sum of the contributions
(Profit or Cost) earned from each decision variable
and sum of the resources used by each decision
variable respectively. /The objective function is the
direct sum of the individual contributions of the
different variables.
Linearity
All relationships in the LP model (i.e. in both objective
function and constraints) must be linear.
13
Application Example 1
Product-Mix Problem
14
Resources required Product/Model Resources
to produce 1 unit A B C Available
Labour (hours/unit) 7 3 6 150
Material (lbs./unit) 4 4 5 200
Profit ($/unit) 4 2 3
16
Step II: Identify the Constraints.
18
Similarly, the raw material constraint is given by
19
Step III: Identifying the Objective.
20
Thus, the linear programming model
for the product mix problem is:
22
Graphical Technique contd…
Objective function
Feasible
set Optimum
24
Application Example 2
26
Example 2 continued
max P = 4x + 6y
y = (-2/3)x + P/6.
28
Example 2 continued
29
Application Example 3
A city hospital has the following minimal daily requirements for nurses:
30
Nurses report at the hospital at the beginning of
each period and work for 8 consecutive hours.
The hospital wants to determine the minimal
number of nurses to be employed so that there
will be a sufficient number of nurses available
for each period. Formulate this as a linear
programming problem by setting up appropriate
constraints and objective function.
31
Application Example 4
Financial planning
A bank makes four kinds of loans to its personal customers and
these loans yield the following annual interest rates to the bank:
First mortgage 14%
Second mortgage 20%
Home improvement 20%
Personal overdraft 10%
The bank has a maximum foreseeable lending capability of Rs. 250
million and is further constrained by the policies:
1. first mortgages must be at least 55% of all mortgages issued and
at least 25% of all loans issued (in Rs. terms)
2. second mortgages cannot exceed 25% of all loans issued (in Rs.
terms)
3. to avoid public displeasure and the introduction of a new windfall
tax the average interest rate on all loans must not exceed 15%.
Formulate the bank's loan problem as an LP so as to maximize
interest income whilst satisfying the policy limitations.
32
Application Example 5
A company assembles four products (1, 2, 3, 4) from
delivered components. The profit per unit for each
product (1, 2, 3, 4) is Rs 10, Rs 15, Rs 22 and Rs 17
respectively. The maximum demand in the next week
for each product (1, 2, 3, 4) is 50, 60, 85 and 70 units
respectively.
There are three stages (A, B, C) in the manual assembly
of each product and the man-hours needed for each
stage per unit of product are shown below:
Product 1 2 3 4
Stage A 2 2 1 1
B 2 4 1 2
C 3 6 1 5
33
The nominal time available in the next week for
assembly at each stage (A, B, C) is 160, 200 and 80
man-hours respectively.
It is possible to vary the man-hours spent on
assembly at each stage such that workers previously
employed on stage B assembly could spend up to
20% of their time on stage A assembly and workers
previously employed on stage C assembly could spend
up to 30% of their time on stage A assembly.
Production constraints also require that the ratio
(product 1 units assembled)/(product 4 units
assembled) must lie between 0.9 and 1.15.
Formulate the problem of deciding how much to
produce next week as a linear program.
34
Application Example 6
An advertising company wishes to plan an advertising
campaign in three different media – television, radio, and
magazines. The purpose of the advertising program is to
reach as many potential customers as possible. Result of
a market study are given below:
TV, TV,
day time prime time Radio Magazines
Cost of an
Advertising 40 000 75 000 30 000 15 000
unit, in $
# of potential
customers 400 000 900 000 500 000 200 000
reached/unit
# of women
customers 300 000 400 000 200 000 100 000
reached/unit
35
The company does not want to spend more than
$800 000 on advertising. It further requires that
(1) at least 2 million exposures take place among
women; (2) advertising on TV be limited to $500
000; (3) at least 3 advertising units be bought on
day time TV, and two units during prime time;
and (4) the number of advertising units on radio
and magazines should each be between 5 and 10.
Formulate as an LP-problem
36
Assume no of tv day time ads=w
no of tv prime time ads=x
no of radio ads=y
no of magazines ads=z
40000w+75000x+30000y+15000z<=800000
Constraints:
(1) 300000w+400000x+200000y+100000z>=2000000
(2) 40000w+75000x<=500000
(3) w>=3, x>=2
(4) 5<=y<=10
5<=z<=10
w,x,y,z>=0
37
Example 7
Solve the following LPP by graphical method
Maximize Z = 2.80X1 + 2.20X2
Subject to constraints
X1 ≤ 20,000
X2 ≤ 40,000
0.003X1 + 0.001X2 ≤ 66
X1 + X2 ≤ 45,000
X1, X2 ≥ 0
38
Solution:
The first constraint X1 ≤ 20,000 can be
represented as follows.
We set X1 = 20,000
The second constraint X2 ≤ 40,000 can be
represented as follows,
We set X2 = 40,000
39
The third constraint 0.003X1 + 0.001X2 ≤ 66 can be
represented as follows, We set 0.003X1 + 0.001X2 = 66
When X1 = 0 in the above constraint, we get,
0.003 x 0 + 0.001X2 = 66
X2 = 66/0.001 = 66,000
Similarly when X2 = 0 in the above constraint, we get,
0.003X1 + 0.001 x 0 = 66
X1 = 66/0.003 = 22,000
40
The fourth constraint X1 + X2 ≤ 45,000 can be
represented as follows, We set X1 + X2 = 45,000
When X1 = 0 in the above constraint, we get,
0 + X2 = 45,000
X2 = 45,000
Similarly when X2 = 0 in the above constraint, we get,
X1 + 0 = 45,000
X1 =45,000
41
42
Point X1 X2 Z = 2.80X1 + 2.20X2
0 0 0 0
Z = 2.80 x 0 + 2.20 x 40,000 =
A 0 40,000
88,000
Z = 2.80 x 5,000 + 2.20 x
B 5,000 40,000
40,000 = 1,02,000
Z = 2.80 x 10,500 + 2.20 x
C 10,500 34,500
34,500 = 1,05,300* Maximum
Z = 2.80 x 20,000 + 2.20 x
D 20,000 6,000
6,000 = 69,200
Z = 2.80 x 20,000 + 2.20 x 0 =
E 20,000 0
56,000
43
The Maximum profit is at point C
When X1 = 10,500 and X2 = 34,500
Z = 1,05,300
44
Example 8
45
Solution:
The first constraint 2X1 + X2 ≤ 20 can be
represented as follows.
We set 2X1 + X2 = 20
When X1 = 0 in the above constraint, we get,
2 x 0 + X2 = 20
X2 = 20
46
Similarly when X2 = 0 in the above constraint, we get,
2X1 + 0 = 20
X1 = 20/2 = 10
The second constraint X1 + 3X2 ≤ 30 can be
represented as follows,
We set X1 + 3X2 = 30
47
When X1 = 0 in the above constraint, we get,
0 + 3X2 = 30
X2 = 30/3 = 10
Similarly when X2 = 0 in the above constraint, we get,
X1 + 3 x 0 = 30
X1 = 30
48
The third constraint X1 - 2X2 ≥ -15 can be represented
as follows,
We set X1 - 2X2 = -15
When X1 = 0 in the above constraint, we get,
0 - 2X2 = -15
X2 = -15/2 = 7.5
Similarly when X2 = 0 in the above constraint, we get,
X1 – 2 x 0 = -15
X1 = -15
49
50
Point X1 X2 Z = 10X1 + 8X2
0 0 0 0
A 0 7.5 Z = 10 x 0 + 8 x 7.5 = 60
B 3 9 Z = 10 x 3 + 8 x 9 = 102
Z = 10 x 6 + 8 x 8 = 124*
C 6 8
Minimum
D 10 0 Z = 10 x 10 + 8 x 0 = 100
The Maximum profit is at point C
When X1 = 6 and X2 = 8
Z = 124
51
Sensitivity Analysis
Deals with obtaining additional information
about the behavior of optimal solution when
the model undergoes some parameter
(objective & constraint coefficients) changes.
LP model is a snapshot of a real situations in
which the model parameters assume static
values.
To enhance the applicability we add a dynamic
dimension that investigates the impact of
making changes in the model parameters on
the optimal solution.
52