Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Linear Programming helps in optimal utilization of var ous existing factors of production
such as installed capacity labour and raw materials etc.
Although Linear Programming is a highly successful too having wide applications in
business and trade for solving optimization problems, t it has certain demerits or defects.
Some of the important limitations in the application of Linear Programming are as follows:
Linear Programming models can be successfully applied nly in those situations where
a given problem can clearly be represented in the form of linear relationship between
different decision variables. Hence it is based on the implicit assumption that the objective
as well as all the constraints or the limiting factors can be stated in term of linear expressions
which may not always hold well in real life situations In practical business problems, many
objective function and constraints cannot be expressed linearly. Most of the business
problems can be expressed quite easily in the form of quadratic equation (having a
power 2) rather than in the terms of linear equation. ear Programming fails to operate
and provide optimal solutions in all such cases.
E.g. A problem capable of being expressed in the form f:
ax
2
+ bx + c = 0 where a>0 can not be solved with the help of Linear Programming
techniques.
Before a Linear Programming technique could be applied to a given situation, the
values or the coefficients of the objective function as well as the constraint equations must
be completely known. Further, Linear Programming assumes these values to be constant
over a period of time. In other words, if the values w to change during the period of
study, the technique of LP would loose its effectiveness and may fail to provide optimal
solutions to the problem. However, in real life practi al situations often it is not possible to
determine the coefficients of objective function and t constraints equations with absolute
certainty. These variables in fact may, lie on a probability distribution curve and hence at
best, only the likelihood of their occurrence can be p cted. Moreover often the value
changes due to extreme internal factors during the per d of study. Due to this, the actual
applicability of Linear Programming tools may be restricted.
There is absolutely no certainty that the solution to LP problem can always be
quantified as an integer quite often. Linear Programmi g may give fractional-varied answers,
DMC 1752
16 ANNA UNIVERSITY CHENNAI
NOTES
High Degree of Complexity
Multiplicity of Goals
Flexibility
which are rounded off to the next integer. Hence, the ution would not be the optimal
one. For example, in finding out the number of men and machines required to perform a
particular job, a fractional solution would be meaning ss.
Many large-scale real life practical problems cannot be solved by employing Linear
Programming techniques even with the help of a compute , due to highly complex and
lengthy calculations. Assumptions and approximations a required to be made so that the
given problem can be broken down into several smaller roblems and, then solve separately.
Hence, the validity of the final result, in all such cases, may be doubtful.
The long-term objectives of an organization are not confined to a single goal. An
organization, at any point of time in its operations h a multiplicity of goals or the goals
hierarchy - all of which must be attained on a priorit wise basis for its long term growth.
Some of the common goals can be maximization or minimization, retaining
market share, maintaining leadership position and prov ding quality service to the consumers.
In cases where the management has conflicting, multipl goals, Linear Programming model
fails to provide an optimal solution. The reason being that under Linear Programming
techniques, there is only one goal which can be expressed in the objective function. Hence
in such circumstances, the situation or the given prob m has to be solved by the help of a
different mathematical programming technique called th Goal Programming.
Once a problem has been properly quantified in terms of objective function and the
constraint equations and the tools of Linear Programming are applied to it, it becomes very
difficult to incorporate any changes in the system arising on account of any change in the
decision parameter. Hence, it lacks the desired operat nal flexibility.
Linear Programming is a mathematical technique for gen rating and selecting the optimal
or the best solution for a given objective function. T chnically, Linear Programming may be
formally defined as a method of optimizing (i.e., maxi izing or minimizing) a linear function
for a number of constraints stated in the form of line equations.
Mathematically the problem of Linear Programming may be stated as that of the
optimization of linear objective function of the follo ng form:
Z = C
1
x
2
+ C
2
x
2
+ ..........C
i
x
i
+ ...........+ C
n
X
n
profit cost
RESOURCE MANAGEMENT TECHNIQUES
17 ANNA UNIVERSITY CHENNAI
NOTES
Subject to the Linear constrains of the form:
a
11
x
1
+ a
12
x
2
+ a
13
x
3
........+ a
1i
x
i
+ .............. + a
ln
x
n
b
1
a
j1
x
1
+ a
j2
x
2
+ a
j3
x
3
........+ a
ji
x
i
+.............. + a
j
n
x
n
bm
1
a
m
1
x
1
+ a
m
2
x
2
+ a
m3
x
3
+ .........+ a
mi
x
i
..........+ a
mn
x
n
b
m
These are called the non-negative constraints. From the above, it is clear that a LP
problem has:
i) Linear objective function which is to be maximized or inimized.
ii) Various linear constraints which are simply the algebr ic statement of the limits of
the resources or inputs at the disposal.
iii) Non-negatively constraints.
Linear Programming is one of the few mathematical tool that can be used to provide
solution to a wide variety of large, complex managerial problems.
For example, an oil refinery can vary its product-mix y its choice among the different
grades of crude oil available from various parts of the world. Also important is the process
selected since parameters such as temperature would also affect the yield. As prices and
demands vary, a Linear Programming model recommends wh h inputs and processes to
use in order to maximize the profits
Livestock gain in value as they grow, but the rate of in depends partially on the feed
choice of the proper combination of ingredients to maximize the net gain. This value can be
expressed in terms of Linear Programming. A firm which distributes products over a large
territory faces an unimaginable number of different ch ces in deciding how best to meet
demand from its network of go down and warehouses. Each warehouse has a very limited
number of items and demands often cannot be met from t nearest warehouse. If there
are 25 warehouses and 1,000 customers, there are 25,000 possible match ups between
customer and warehouse. LP can quickly recommend the s ipping quantities and destination
so as to minimize the cost of total distribution.
These are just a few of the managerial problems that h ve been addressed successfully
by LP. A few others are described throughout this text Project scheduling can be improved
by allocating funds appropriately among the most critical task so as to most effectively
reduce the overall project duration. Production planni over a year or more can reduce
costs by careful timing of the use of over time and in ntory to control changes in the size
of the workforce. In the short run, personnel work sch ules must take into consideration
not only the production, work preferences for day offs and absenteeism etc.
Besides recommending solutions to problems like these, LP can provide useful
information for managerial decisions that can be solved by Linear Programming. The
application, however, rests on certain postulates and tions, which have to hold
good for the optimality of the solution to be effective during the planning period.
DMC 1752
18 ANNA UNIVERSITY CHENNAI
NOTES
2.5 APPLICATIONS OF LINEAR PROGRAMMINGTECHNIQUES IN
INDIAN ECONOMY
2.6 BUILDING LINEAR PROGRAMMING PROBLEMS
linear programming LP model
proportional objective function constraint
The various factors of productions such as
a. Skilled labour
b. Capital and
c. Raw material etc.,
are very precious and scarce for a country like India. The policy planner is, therefore faced
with the problem of scarce resource allocation to meet the various competiting demands
and numerous conflicting objectives. The traditional and conventional methods can no
longer be applied in the changed circumstances for solving this problem and are hence fast
losing their importance in the current economy. Hence, the planners in our country are
continuously and constantly in search of highly objective and result oriented techniques for
sound and proper decision making which can be effectiv at all levels of economic planning.
Non-programmed decisions consist of:-
a. Capacity expansion
i) Plant location
ii) Product line diversification
iii) Expansion
iv) Renovation and
v) Modernization etc.
On the other hand, the programmed decisions consist of budgeting, replacement,
procurement, transportation and maintenance etc. In these times, a number of new and
better methods, techniques and tools have been developed by the economists all over the
globe. All these findings form the basis of operations research. Some of these well-known
operations research techniques have been successfully pplied in Indian situations, such
as:
b. Business forecasting
i) Inventory models - deterministic and probabilistic
ii) Linear Programming
iii) Goal programming
iv) Integer programming and
v) Dynamic programming etc.
In building a (or briefly ) for a system, two crucial
assumptions must be valid. The is that the activity level
j
( = 1, 2 ) has a
contribution to the as well as in a . If and
first x j n
c
j
x
j
RESOURCE MANAGEMENT TECHNIQUES
19 ANNA UNIVERSITY CHENNAI
NOTES
per unit
discounts additivity
linear functions
Product Mix Model production
planning firm
resources
capacities
return
Linear Programming Problem LP
a
ij
x
j
i
th
c
j
a
ij
second
simple addition
x x x
n
n m
maximum available b b b
m
a
ij
i
th
unit j
th
c
j
n
x
j
j
th
j n
c x c x c
n
x
n
a x a x a
n
x
n
b
a x a x a
n
x
n
b
a
m
x a
m
x a
mn
x
n
b
m
x x x
n
x x x
n
divisible
x x x
n
m
a
a
a
m
a
a
a
m
a
a
a
mn
b
b
b
m
c c c
n
are the respective contributions in the objective and the constraint, the
contributions and are assumed constants for the system and must be known from
analysis of the actual system. The proportionality ass mption precludes economics of return
to scale or . The assumption is that of of the contributions.
The system must be such that the objective function and each of the constraint can be
obtained from the contributions by . In this way, the objective function and
each of the constraints become
1
,
2
.
As an example, consider the , applicable for
. Suppose that a production unit (or in the terminology of economics)
produces number of products utilizing number of (of its own or of others)
having
1
,
2
, . Let be the amount consumed
from the source for the production of a of the product which ensures (or
profit) . These data are supposed to be known from the cost an ysis for the production
unit and can be arranged as a table in the following m ner.
Given the data, it is required to find the level of pr ction of the products so that
the total return Z is maximum. If we suppose that the level of production is for the
product ( = 1, 2 ), then the mathematical problem of determining these owns
becomes the (also written again in short as ):
Maximize : z =
1 1
+
2 2
+ . . . +
s.t :
11 1
+
12 2
+ . . . +
1
1
21 1
+
22 2
+ . . . +
2 2
..
1 1
+
2 2
+ . . . +
1
,
2
, , 0.
If the system allows
1
,
2
to be numbers, then their values could be
integer, fractional and even theoretically any real number. This is obviously the case for
example, a paint manufacturer producing paints of diff ent colours and shades. There are
however several instances, like manufacture of televis on sets, music systems etc. of different
models in an electronic manufacturing company, where it is required that
1
,
2
, ,
must be integers, then this constraint also enters the list of constraints written above.
Product
Resource
1 2 . . . n
Available Capacity
1
2
.
.
11
21
.
.
1
12
22
.
.
2
. . .
. . .
. . .
. . .
. . .
1n
2n
.
.
1
2
.
.
Unit Return
1 2
. . .
DMC 1752
20 ANNA UNIVERSITY CHENNAI
NOTES
activities
Remark 1.
2.7 STEPS IN FORMULATINGA LINEAR PROGRAMMING MODEL
Step I. Identification of the Decision Variables
Step II. Identification of the Constraints
Step III. Identification of the Objective
2.8 EXAMPLES
2.8.1 Example 1
In general, instead of manufacturer of certain products one can have certain other
of an organization which can be modeled on the linearity assumption. Evidently
the mathematical problem remains the same.
In many cases the available capacities are not simple constants but depend on
and time with associated costs. In such cases the above model cannot
be used.
As we have so far seen that linear programming is one the most useful techniques
for effective decision making. It is an optimization a proach with an emphasis on providing
the optimal solution for resource allocation.
How best to allocate the scarce organizational or national resources among different
competing and conflicting needs (or uses) forms the core of its working. The scope for
application of linear programming is very wide and it cupies a central place in many
diversified decisional problems. The effective use and application of linear programming
requires the formulation of a realistic model which represents accurately the objectives of
the decision making subject to the constraints in which it is required to be made.
The basic steps in formulating a linear programming mo l are as follows:
The decision variables (parameters) having a bearing on the decision at hand shall
first be identified, and then expressed or determined n the form of linear algebraic functions
or in equations.
All the constraints in the given problem which restric the operation of a firm at a given
point of time must be identified in this stage. Further these constraints should be broken
down as linear functions in terms of the pre-defined decision variables.
In the last stage, the objective which is required to optimized (i.e., maximized or
minimized) must be clearly identified and expressed in terms of the pre-defined decision
variables. With this background information, let us no try to formulate the given problem
as a linear programming problem.
:- High Quality Furniture Ltd. manufactures two products,
i) Tables and
ii) Chairs.
Both the products have to be processed through two mac nes:
i) Ml and
ii) M2
set-up takedown
RESOURCE MANAGEMENT TECHNIQUES
21 ANNA UNIVERSITY CHENNAI
NOTES
Solution.
Step I.
Step II.
Step III.
The total machine-hours available are:
i) 200 hours ofM1 and
ii) 400 hours of M2 respectively.
Time in hours required for producing a chair and a table on both the machines is as
follows:
Time in Hours
Profit from:-
i) Sale of table is Rs.50
and sale of chair is Rs.30
Determine optimal mix of tables and chair so as to maximized the total profit
contribution
Let x
1
=no. of tables produced and
x
2
=no. of chairs produced
The objective function for maximizing the profit is g en by
Maximize Z=50x1 +30x2 (objective function) (Since profit per unit from a table and
a chair is Rs. 50 and Rs. 30 respectively).
List down all the constraints.
i) Total time on machine M
1
cannot exceed 200 hours.
7x
1
+4x
2
200
(Since it takes 7 hours to produce a table and 4 hours to produce a chair on machine
M
1
)
ii) Total time on machine M
2
cannot exceed 400 hours
5x
1
+5x
2
400
(Since it takes 5 hours to produce both a table and a on machine M
2
)
Presenting the problem. The given problem can now be ulated as a linear
programming model as follows:
Maximize Z = 50x
1
+ 30x
2
Subject to: 7x
1
+4x
2
200
5x
1
+5x
2
400
Futher; x
1
, x
2
0
Machine Table Chair
M1 7 4
M2 5 5
DMC 1752
22 ANNA UNIVERSITY CHENNAI
NOTES
2.8.2 Example 2
Solution.
Step 1
Step II
Step III Presenting the problem
2.8.3 Example 3.
(Since if x
1
and x
2
< 0 it means that negative quantities of products are being
manufactured which has no meaning).
: Alpha Limited produces and sells 2 different products under the brand
name black and white. The profit per unit on these products in Rs. 50 and Rs. 40
respectively. Both black and white employ the same manufacturing process which has a
fixed total capacity of 50,000 man-hours. As per the e mates of the marketing research
department of Alpha Limited, there is a market demand or maximum 8,000 units of black
and 10,000 units of white. Subject to the overall demand, the products can be sold in any
possible combination. If it takes 3 hours to produce one unit of black and 2 hours to
produce one unit of white, formulate the above as a li ar programming model.
Let x
1
, x
2
denote the number of units produced of products black and white
respectively.
: The objective function for maximizing the profit is ven by: maximize
Z= 50x
1
+ 40x
2
(objective function)
: List down all the constraints.
i) Capacity or man-hours constraint:
(Since it takes 3 hours to produce one unit of x
1
and 2 hours to produce 1 unit of x
2
and the total available man - hours are 50,000)
ii) Marketing constraints:
(Since maximum 8,000 units of x
1
can be sold) (Since maximum 10,000 units of x
2
can
be sold).
: . Now, the given problem can be written as a linear
programming model in the follows:
Maximize Z = 50x
1
+ 40x
2
Subject to: 3x
1
+2x
2
50,000
X
1
8000
X
2
10,000
Further; x
1
, x
2
0
(Since if x
1
, x
2
< 0, it means that negative Quantities of products are being manufactured -
which has no meaning)
Good Results Company manufactures and sells in the export market
three different kinds of products:
i) P
1
,
ii) P
2
and
iii) P
3
DMC 1752
24 ANNA UNIVERSITY CHENNAI
NOTES
Step III:
2.8.4 Example 4
iv) 0.08x
1
+0.30x
2
+0.08x
3
55.00
Total hours available on product wise basis in Department D
v) 50 x
1
100
Minimum 50 units of P1 must be produced subject of maximum of 100 units.
vi) 0 x
2
200
Maximum units of P2 that can be sold is 200 units.
vii) 70 x
2
300
inimum 70 units of P3 must be produced subject to a ma mum of 300 units
viii.) Further, x
1
, x
2
, x
3
0
Since negative values of P
1
, P
2
and P
3
has no meaning
Presenting the Problem
The given problem can be reduced as a LP model as under:
Maximize: Z=15x
1
+ 20x
2
+ 25x
3
Subject to: 0.05x
1
+0.10x
2
+0.20x
3
40.00
0.06x
1
+0.12x
2
+0.09x
3
45.00
0.07x
1
+0x
2
+0.07x
3
50.00
0.08x
1
+0.30x
2
+0.08x
3
55.00
50 d x
1
100
0 d x
2
200
70 x
2
300
x
1
, x
2
, x
3
0
. The management of Surya Chemicals is considering the optimal mix of
two possible processes. The values of input and output for both these process are given as
follows:
Maximum:
i) 500 units of Input I
1
and 300 units of I
2
,
ii) 300 units of I
2
are available to Surya Chemicals in the local market.
Process Units Inputs Units Outputs
I
1
I
2
O
1
O
2
X 2 6 3 7
Y 4 8 5 9
DMC 1752
26 ANNA UNIVERSITY CHENNAI
NOTES
2.8.5 Example 5
Solution
Step 1
Step II
Inputs Required Product Profit
: Chocolate India Ltd. produces three varieties of Chocolates
i) Hard,
ii) Mild and
iii) Soft
from three different inputs I
1
, I
2
and I
3
.
One unit of Hard requires 2 units of I
1
and 4 unit of I
2
. One unit of mild requires 5
units of I
1
, 4 units of I
2
and 3 units of I
3
and one unit of soft requires 10 units of I
1
and 15
units of I
3
. The total available inputs in the companys warehouse is as under:
I
3
- 50 units
I
2
- 400 units
I
1
- 100 units
The profit per unit for hard, mild and soft are
i. Rs. 30 and
ii. Rs. 20
iii. Rs. 40 respectively.
Formulate the problem so as to maximize the total prof t by using linear programming.
. At the beginning, it is better to present the problem in a tabular form
Let x
1
, x
2
and x
3
denote the no. of units of the three varieties of cho olate - Hard, mild
and soft respectively.
The objective function for maximizing the profit is:
Maximize Z = 30x
1
+ 20x
2
+ 40x
3
(objective function)
List down all the constraints:
i.) 2x
1
+5x
2
+10x
3
100
(Since Input I
1
required for the three products is 2, 5 and 10 units respectively
subject to a maximum of 100 units).
ii.) 4x
1
+4x
2
+0x
3
400
(Since input I
2
required for the three products is 4,4 and 0 units respectively
subject to a maximum of 400 units).
I
1
I
2
I
3
(Rs. Per unit )
Hard 2 4 -- 20
Mild 5 4 3 30
Soft 10 -- 15 40
Maximum availability of inputs 100 400 50
x x x
x x x
x x x
x x x
x x x
x x x x
DMC 1752
28 ANNA UNIVERSITY CHENNAI
NOTES
Machine Number of 200 ml
bottles per min.
Number of jumbo
bottles per min.
[
1
A,
2
B (in thousands).
Maximize: z = 6000
1
+ 8000 ,
s.t.:
1
(3/2)
2
,
2
1
-
2
= const. 1,
1
+
2
8,
1
,
2
0].
3. A soft drink manufacturer has two machines A and B for bottling 200ml and jumbo
sized bottles. The rates of bottling are
The machines can be run for 8 hours 5 days a week. The market demands for two
types of bottles are at most 25000 and 8000 per week and the profits are 15 paise
and 75 paise per bottle. Formulate this as L.P for determining number of bottles to
be manufactured, of each type per week for maximum tot profit.
[
1
200 ml bottles,
2
jumbo bottles].
Maximize: z = .15
1
+.75
2
, s.t.: time constraints
1
/100 +
2
/40 8 X 60 X 5 =
2400,
1
/ 60 +
2
/ 75 2400, market demands 0
1
2500, 0
2
8000,
1
,
2
integers 0].
4. A Television manufacturer produces BandW and color sets and sells them at a
profit of Rs. 500 and Rs. 1500 respectively on each set. The time required for
assembling a color set is 5 hours and decorating it is 1 hour, while the respective
times for a BandW set are 2 hours and 45 minutes. The 12
assemblers and 4 decorators working 8 hours per day. Formulate the problem as
L.P. so that the manufacturer makes maximum profit by elling all models produced
in a month.
[
1
- BandW set,
2
color set.
Maximize: z = 500
1
+ 1500
2
,
s.t.: 2
1
+ 5
2
2880,
(3/4)
1
+
2
960,
1
,
2
integers 0].
A
B
100
60
40
75
x x
x x
2
x x
x x
x x
x x
x x
x x x x
x x x x x
x
x x
x x
x x
x x
x x
DMC 1752
30 ANNA UNIVERSITY CHENNAI
NOTES
7. A woman worker of a cooperative has two types of job: spinning thread and
(ii) dyeing the spun thread, producing a unit of each r hour. She is paid Rs.2 per
unit for spinning and Rs.5 for dyeing and wants to ear not less than Rs.18 per day
working for no more than 6 hours. The cooperative want that each day the spun
thread should not exceed the thread consumed in dyeing by 2 units. If the selling
profit is Rs.3 per unit for spinning and Rs.7 per unit for dyeing, formulate the L.P
for determining the units the woman should spin and dye each day to make
maximum profit for the cooperative.
Try to solve the problem by trial.
[Spinning
1
units, dyeing
2
units.
Maximize z = 3
1
+ 7
2,
s.t.: 2
1
+ 5
2
18,
1
+
2
6,
0
1
-
2
2,
1
,
2
integers 0.
Solution:
1
= 4,
2
=2, z
max
= Rs.26].
8. A farmer has 100 acre land on which he wants to grow tomatoes, cabbages and
radishes. The average yield per acre is 2000 kg of tomatoes, 3000 heads of
cabbage and 1000 kg of radishes. The price he can obtain is Rs.3 per kg of
tomatoes, Rs.1 per head of cabbage and Rs.2 per kg of cost of
fertilizer is Rs.1.50 per kg and the amount required per acre is 100 kg for tomatoes
and cabbage and 50 kg for radishes. Labour required for sowing, cultivating and
harvesting are 5 man-days for tomatoes and radishes an 6 man-days for cabbages.
A total of 400 man-days are available at Rs.40 per man day. Formulate the problem
as an L.P for farmers maximum net profit.
[
1
acres-tomatoes,
2
acres-cabbages,
3
acres-radishes. Maximum: z = 6000
1
+ 3000
2
+ 2000
3
1.5 X (100
1
+ 100
2
+ 50
3
) 40 X (5
1
+ 6
2
+ 5
3
) =
5650
1
+ 2610
2
+ 1725
3
, s.t.: acreage constraint
1
+
2
+
3
100, man-
days constraint 5
1
+ 6
2
+ 5
3
400,
1
,
2
,
3
0].
9. A farmer wants to raise an orchard of mangoes and guav on three farms 1,2 and
3 with usable acreage 400, 600 and 300 respectively. T water available in each
farm is 2000 units and the consumption per acre are 5 ts for mangoes and 4
units for guavas. In order to maintain a uniform work d among the farms the
fraction of usable average must be kept the same at ea farm. If the expected
profit per acre for mangoes is Rs. 400 and for guavas 300, the farmer wants
to know how many acres of each crop should be planted each of the farms in
order to have maximum profit.
x x
x x
x x
x x
x x
x x
x x
x x x x
x x x x x x x x
x x x x x x
x x x x x x
RESOURCE MANAGEMENT TECHNIQUES
31 ANNA UNIVERSITY CHENNAI
NOTES
Holds Weight Capacity (tons) Volume Capacity (m
3
)
Commodity Weight (tons) Volume per
ton (m
3
)
Profit per ton
(Rs.)
Investment
Alternatives
Return
(percent)
Number of
Years
Risk
= =
+ =
3
1
3
1
gi mi
300 400 z : Maximize trees. guava and mangos for average x , [x
s.t.:
m1
+
g1
400,
m2
+
g2
600,
m3
+
g3
300, 5
mi
+ 4
gi
2000 for = 1, 2,
3, (
m1
+
g1
) / 400 = (
m2
+
g2
) / 600 = (
m3
+
g3
) / 300,
mi
0.
gi
0 for =1,2,3].
10. Formulate the following LP. A ship has three cargo holds forward, centre and
aft. The capacity limits are
The following cargoes are offered: the ship owner may accept all or any part of each
commodity
In order preserve the trim of the ship, the weight in ach hold must be proportional to
the capacity in tons. The cargo is to be distributed so as to maximize profit.
[
1F
,
1C
,
1A
weight (ton) loaded in forward, centre and aft etc., Maximize z =
60 (
1F
+
1C
+
1A
) + 80(
2F
+
2C
+
2A
) + 50(
3F
+
3C
+
3A
), s.t.:
1F
+
2F
+
3F
2000,
1C
+
2C
+
3C
3000,
1A
+
2A
+
3A
1500,
1F
+
1C
+
1A
6000,
2F
+
2C
+
2A
4000,
3F
+
3C
+
3A
2000, 6
1F
+ 5
2F
+ 25
3F
10000, 6
1C
+ 5
2C
+ 25
3C
14000, 6
1A
+ 5
2A
+ 25
3A
3000, (
1F
+
2F
+
3F
) / 2000 = (
1C
+
2C
+
3C
) / 3000 = (
1A
+
2A
+
3A
) / 1500,
1F
,
1C
, x
1A
etc.
0].
11. (Investment Model) On retirement an employee wants to vest his retirement
benefits (provident fund, gratuity etc.) in four inves ment alternatives on a ten year
horizon. The alternatives involve risks which he subjectively marks on a five point
scale. The data are given below:
Forward
Centre
Aft
2000
3000
1500
10000
14000
3000
A
B
C
6000
4000
2000
6
5
25
60
80
50
Term Deposits
NSC
Equity Shares
Real Estate
9.5
10.5
20
25
2
6
5
10
1
0.5
7
2
i
gi
i
mi
x x
x x x x x x x x i
x x x x x x x x i
x x x
x x x x x x x x x x x
x x x x x x x x x x
x x x x x x x x x
x x x x x x x x
x x x x x x x x x
DMC 1752
32 ANNA UNIVERSITY CHENNAI
NOTES
(Investment Model)
A B C D
What percentage of his retirement benefits should he invest in the four schemes for
highest return if he decides not to take risks exceeding 3 and invest at least 30% in
real estate?
[
1
,
2
,
3
,
4
respective percentages of total amount.
Maximize: z = 0.095
1
+ 0.105
2
+ 0.20
3
+ 0.25
4
,
s.t.: 2
1
+ 6
2
+ 5
3
+10
4
10,
1
+ 0.5
2
+ 7
3
+ 2
4
3,
4
0.30,
1
,
2
,
3
,
4
0].
12. A chartered accountant wants to determine best investment
portfolio in four proposals A, B, C, D. The portfolio ta are as follows:
The amount available is Rs 25 lakhs. He decides not to invest more than Rs 5 lakhs
in A and B combined and for the sake of diversity at least 100 shares of each stock
should be purchased. Also, the weighted risk
es alternativ the all in investment Total
) j e alternativ of Risk ( x ) j e alternativ in Investment (
4
1 J
Should not exceed 0.10. How to maximize the rupee return (based on current price,
annual growth rate and dividends per share) at the end of 1 year?
[
1
no. of shares of A etc.
Maximize z = (80 X 0.08 + 4)
1
+ (100 X 0.07 + 4.50)
2
+ (160 X 0.10 + 7.50)
3
+ (120 X 0.12 + 5.50)
4
,
s.t.: 80
1
+ 100
2
+ 160
3
+ 120
4
25,00,000,
80
1
+ 100
2
5,00,000,
1
100,
2
100,
3
> 0,
4
> 0].
Current price per share (Rs.)
Projected annual growth rate per year
Projected annual dividend per share (Rs.)
80
0.08
4.00
100
0.07
4.50
160
0.10
7.50
120
0.12
5.50
Risk in turn 0.05 0.03 0.10 0.20
x x x x
x x x x
x x x x
x x x x
x
x x x x
x
x x x
x
x x x x
x x
x x x x
RESOURCE MANAGEMENT TECHNIQUES
33 ANNA UNIVERSITY CHENNAI
NOTES
(Advertisement Model)
(Warehousing Model)
S
13. A firm wants to expend Rs. 10 lakhs for advertising one
of its products on radio, TV, and a newspaper. It can radio time for
Rs.2000 per spot, TV time for Rs.10,000 per spot and n paper advertisement
for Rs. 4000 per insertion. The payoff from the advert ement is a measure of the
audience reached. Based on past experience a radio spot is given 40 audience
points, a TV spot 160 points and a newspaper insertion 300 points. The firm
wishes to determine the money to allocate to each medi so that the number of
total audience points is maximized. Based on subjective consideration, the firm
decides not to spend more than Rs.2.5 lakhs on radio and at least Rs.4 lakhs on
TV. Also, the firm wants to keep newspaper allocation exceed 50% of
allocation to TV. Formulate the problem as an LP.
[
1
radio,
2
TV,
3
newspaper (in lakhs of Rs.).
Maximize: z = (40/200) + (160/10000) + (300/4000)
3
,
s.t.:
1
+
2
+
3
= 10,
1
2.5,
2
4,
3
(1/2)
2
0,
1
,
2
,
3
0].
14. A warehouse has a fixed capacity of a commodity. The
manager buys and sells the stock at the intervals of periods (say weeks).
Assuming that in the period constant unit and are
and and unit is ; find how the manager should operate, assuming
that the warehouse is empty at the end.
[ level of stock at the beginning of period, , number of units purchased
and sold. Maximize: z = ( ), s.t.:
+1
= + , ( = 1,2, , -1),
=1
, ( = 1, 2, , ), + = 0].
x x x
x
1
x
2
x
x x x
x x
x x
x x x
C
n n
j
th
selling purchasing prices p
j
q
j
holding price r
j
x
j
j
th
y
j
z
j
n
p
j
z
j
q
j
y
j
r
j
x
j
x
j
x
j
y
j
z
j
j n
j
x
j
C j n x
n
y
n
z
n
DMC 1752
34 ANNA UNIVERSITY CHENNAI
NOTES
CHAPTER 3
GRAPHICAL SOLUTION
3.1 GRAPHICALAPPROACH FOR GENERATING OPTIMAL
SOLUTIONS TO A LP PROBLEM.
Step I
Step II
Step III
It is important to understand the Graphical Method of lution in Linear Programming
and find out as to how the graphical method of solution be used to generate optimal solution
to a Linear Programming problem.
Once the Linear programming model has been formulated the basis of the given
objective and the associated constraint functions, the next step is to solve the problem and
obtain the best possible or the optimal solution vario s mathematical and analytical techniques
can be employed for solving the Linear-programming mod .
The graphic solution procedure is one of the methods of solving two variable linear
programming problems. It consists of the following steps:-
Defining the problem. Formulate the problem mathematically. Express it in terms of
several mathematical constraints and an objective func on. The objective function relates
to the optimization aspects such as maximization or mi imization criterion.
Plot the constraints graphically. Each inequality in the constraint equation has to be
treated as an equation. An arbitrary value is assigned to one variable and the value of the
other variable is obtained by solving the equation. In the similar manner, a different arbitrary
value is again assigned to the variable and the corresponding value of other variable is
easily obtained.
These 2 sets of values are now plotted on a graph and ected by a straight line.
The same procedure has to be repeated for all the constraints. Hence, the total straight
lines would be equal to the total no.of equations, eac straight line representing one constraint
equation.
Locate the solution space. Solution space or the feasi region is the graphical area
which satisfies all the constraints at the same time. h a solution point always
occurs at the corner. Points of the feasible region is determined as follows:
(x, y)
RESOURCE MANAGEMENT TECHNIQUES
35 ANNA UNIVERSITY CHENNAI
NOTES
Step IV
Important terms used in linear programming.
Important Theorems
a. For greater than and greater than or equal to constraints (i.e.), the feasible
region or the solution space is the area that lies abo the constraint lines.
b. For Less than and Less than or equal to constraint (i.e. ). The feasible region
or the solution space is the area that lies below the onstraint lines.
Selecting the graphic technique. Select the appropriate graphic technique to be used
for generating the solution. Two techniques via: Corner Point Method and Iso-profit (or
Iso-cost) method may be used we give below both the te niques, however, it is easier to
generate solution by using the corner point method.
a. Corner Point Method.
i) Since the solution point (x,y) always occurs at the corner point of the
feasible or solution space, identify each of the ext e points or corner
points of the feasible region by the method of simulta eous equations.
ii) By putting the value of the corner points co-ordinates [e.g. (2, 3)] into the
objective function, calculate the profit (other cost) each of the corner
points.
iii) In a maximization problem, the optimal solution occurs at that corner point
which gives the highest profit.
iv) In a minimization problem, the optimal solution occurs at that corner point
which gives the lowest profit.
b. Iso-Profit (or Iso-Cost) method. The term Iso-profit signifies if is that any
combination of points produces the same profit as any other combination on the
same line. The various steps involved in this method a given below.
c. Selecting a specific figure of profit or cost, an iso-profit or iso-cost line is drawn
up so that it lies within the shaded area.
d. This line is moved parallel to itself and farther or c ser with respect to the origin till
that point after which any further movement would lead to this line falling totally
out of the feasible region.
e. The optimal solution lies at the point on the feasible region which is touched by the
highest possible iso-profit or the lowest possible iso-cost line.
f. The co-ordinates of the optimal point (x,y) are calculated with the help of
simultaneous equations and the optimal profit or cost as curtained.
While obtaining the optimum feasible solution to the l near programming problem, the
statement of the following four important theorems are used:-
DMC 1752
36 ANNA UNIVERSITY CHENNAI
NOTES
Theorems I
Theorems II
Theorem III
Theorem IV
Important Terms
i. Solution
ii. Feasible Solution
iii. Basic Solution
iv. Basic Feasible Solution
The feasible solution space constitutes a convex set.
Within the feasible solution space, feasible solutions correspond to the extreme (or
Corner) points of the feasible solution space.
There are a finite number of basic feasible solutions ith the feasible solution space.
The optimum feasible solution, if it exists. It will o ur at one, or more, of the extreme
points that are basic feasible solutions.
Note. Convex set is a polygon Convex implies that if any two points of the polygon are
selected arbitrarily then straight line segment joinin these two points lies completely within
the polygon. The extreme points of the convex set are basic solution to the linear
programming problem.
Some of the important terms commonly used in linear programming are disclosed as
follows:
Values of the decision variable = 1, 2, 3, in) satisfying the constraints of a general
linear programming model is known as the solution to that linear programming model.
Out of the total available solution a solution that also satisfies the non-negativity
restrictions of the linear programming problem is call a feasible solution.
For a set of simultaneous equations in Q unknowns, a olution obtained by setting (P
- Q) of the variables equal to zero and solving the remaining P equation in P unknowns is
known as a basic solution.
The variables which take zero values at any solution are detained as non-basic variables
and remaining are known as basic variables, often called basic.
A feasible solution to a general linear programming pr blem which is also basic solution
is called a basic feasible solution.
x ;( i
RESOURCE MANAGEMENT TECHNIQUES
37 ANNA UNIVERSITY CHENNAI
NOTES
v. Optimal Feasible Solution
vi. Degenerate Solution
3.2 EXAMPLES
3.2.1 Example:1
Solution
Step I
Any basic feasible solution which optimizes (ie; maxim e or minimizes) the objective
function of a linear programming modes known as the op feasible solution to that
linear programming model.
A basic solution to the system of equations is termed s degenerate if one or more of
the basic variables become equal to zero.
X Ltd wishes to purchase a maximum of 3600 units of a product two types of
product a and b are available in the market. Product a occupies a space of 3 cubic
feet and cost Rs. 9 whereas occupies a space of 1 cubic feet and cost Rs. 13 per unit. The
budgetary constraints of the company do not allow to s more than Rs. 39,000. The
total availability of space in the company goes down is 6000 cubic feet. Profit margin of
both the product and its Rs. is 3 and 4 respectively. ormulate as a linear programming
model and solve using graphical method. You are required to ascertain the best possible
combination of purchase of a profit and so that the total profits are maximized.
Let x
1
= no. of units of product a and
x
2
=no. of units of product b
Then the problem can be formulated as a P model as follows:-Objective function,
Maximize Z = 3x
1
+ 4x
2
Constraint equations: x
1
+ x
2
3600(Maximum units constraints)
3x
1
+ x
2
6000 (Storage area constraint)
9x
1
+ 13x
2
39000 (Budgetary constraint)
x
1
, x
2
0
Treating all the constraints as equality, the first constraint is
x
1
+ x
2
= 3600
Put x
1
= 0 => x
2
=3600 and the point is (0, 3600)
DMC 1752
38 ANNA UNIVERSITY CHENNAI
NOTES
Step II
Step III
Step IV
Step V
Step VI
Step VII
Step VIII
Finding Optimal Solution
Put x
2
= 0 => x
1
= 3600 and the point is (3600, 0)
Draw the graph with x
1
on x-axis and x
2
on y-axis as shown in the figure.
Determine the set of the points which satisfy the cons aint:
x
1
+ x
2
= 3600
This can easily be done by verifying whether the origi (0, 0) satisfies the constraint. Here,
0+0 = 3600. Hence all the points below the line will satisfy the constraint.
The 2
nd
constraint is: 3x
1
+ x
2
6000
Put x
1
=0 => x
2
= 6000 and the point is (0, 6000)
Put x
2
=0 => x
1
= 2000 and the point is (2000, 0)
Now draw its graph.
Similar to step II, determine the set of points which atisfy the constraint
3x
1
+ x
2
6000. At origin 0 +0 < 6000 Hence, all the points below the line will satisfy the
constraint.
The 3
rd
constraint is: 9x
1
+ 13 x
2
39000
Put x
1
= 0 => x
2
= 3000 and the point is (0, 3000) Put x
2
= 0 => x
1
=13000/3 and the point
is (13000/3, 0) Now draw its graph.
Again the point (0, 0) i.e. the origin satisfies the constraint 9x
1
+ 12x
2
39000. Hence,
all the points below the line will satisfy the constraint.
The intersection of the above graphic denotes the feasible region for the given problem.
Always keep in mind two things: -
i. For constraint the feasible region will be the area, whic lies above the constraint
lines, and for constraints, it will lie below the constraint lines. would be
useful in identifying the feasible region.
ii. According to a theorem on linear programming, an optimal solution to a problem
(if it exists) is found at a corner point of the solut space.
DMC 1752
40 ANNA UNIVERSITY CHENNAI
NOTES
Result
3.2.2 Example:2
Solution
Put the Value of x
2
in first equation:
=> x
1
= 1300
At point (1300,2100)
Z = 3x
1
+ 4x
2
= 3x1300+ 4x2100
= 12,300 which is the maximum value.
The optimal solution is:
No of units of product a = 1300
No of units of product = 2100
Total profit = 12300 which is the maximum.
Lets consider some more examples.
Great Well Ltd. produces and sells two different types of products P1 and P2 at a
profit margin of Rs. 4 and Rs. 3 respectively. The ava ability of raw materials the maximum
no of production hours available and the limiting fact r of P2 can be expressed in terms of
the following in equations:
4x
1
+ 2x
2
10
2 x
1
+ 8 / 3 x
2
8
x
2
6
x
1
, x
2
0
Formulate and solve the LP problem by using graphical hod so as to optimize
both P
1
and P
2
Objective:
Maximize Z = 4x
1
+ 3x
2
Since the origin (0, 0) satisfies each and every constraint, all points below the line will
satisfy the corresponding constraints.
=
RESOURCE MANAGEMENT TECHNIQUES
47 ANNA UNIVERSITY CHENNAI
NOTES
slack surplus variables
zero coefficients
c x
Ax = b, x 0.
then it is unlikely to cause much difficulty because such linear equations are common place
in linear algebra. We would like to stick to such form as standard form. So, if we encounter
inequality constraints like
3
n
j j 3
n
1 j
2 j j 2
b x a and b x a
We convert them in to equalities by introducing extra ariables
2
0 and
3
0 such that
3 3
n
1 j
j 3j 2
n
1 j
2 j j 2
b S x a and b S x a
S
2
and S
3
are respectively called in O.R. literature, and . We
note that such variables do not enter the objective fu tion z, or we may say that they enter
into the linear expression for z with . By this procedure we note however
that the dimension of the problem, that is to say the of variables is increased.
Finally in all the examples, the decision variables by themselves are non-negative, that is to
say 0, ( = 1, 2 ). We retain these positive constraints as such and do not increase
the dimension any further by introducing more surplus ariables.
The standard form of a linear programming problem can herefore be formulated in
the following manner. Let the decision variables in an LP be
1
,
2
n
with an objective
function z, then determine them so as to
Minimize: z =
1 1
+
2 2
+ +
s.t.:
11 1
+
12 2
+ +
1
=
1
21 1
+
22 2
+ +
2 2
=
2
(3a)
m1 1
+
m2 2
+ + =
1
,
2
, , 0.
More compactly we can write
Minimize: z = S
=1
s.t.: S = , ( = 1, 2 ) (3b)
=1
0, ( = 1, 2, , )
Or, even more compactly, in the notations of matrix algebra
Minimize: S =
T
s.t: (3c)
=
= = +
= =
S S
x
j
j n
x x x
c x c x c
n
x
n
a x a x a
n
x
n
b
a x a x a
n
x
n
b
a x a x a
mn
x
mn
b
m
x x x
n
n
c
j
x
j
j
n
a
ij
x
j
b
i
i m
j
x
j
j n
DMC 1752
48 ANNA UNIVERSITY CHENNAI
NOTES
cost coefficients
unit cost vector c decision
technological coefficients
technological constraints A
inconsistent right hand side
coefficients right hand side vector b
c A
b
unrestricted
In the above
1
,
2
, , are called associated with
1
,
2
, ,
n
which constitute the components of = [
1
,
2
, , ] and
= [
1
,
2
, ,
n
] ; the superscript standing for transposition. The coefficients
, ( = 1, 2 and = 1, 2 ) are called the occurring in
the = 1, 2 . These coefficients define the x matrix
= matrix of [ ], in other words
) 4 (
n a ... a a
... ... ... ...
n a ... a a
n a ... a a
A
m 2 m 1 m
2 22 21
1 12 11
must be , otherwise there would be more equations than the num r of unknowns
and the equations would be .
1
,
2
, , are called
, which constitute the components of the = [
1
,
2
,
, ] . Theoretically we assume the elements of and to have any sign, positive or
negative, but if necessary we can assume 0. This is possible because if any element
is negative, we can multiply the technological constraint by 1 to obtain > 0 on the
right hand side.
In some models it sometimes happens that a variable >
k
>0. In such a case we
can use the shift transformation = l
k
0 in the problem. By this, the problem is
converted in to standard form involving the new variab e x
k
. On a few occasions, particularly
in the theory of LP we come across cases when is , that is, it can be > = or
< 0. In such cases we can define 0 by
0 x if , x
0 x if , 0
k
x
0 x if , 0
0 x if , x
k
x
k k
k
k
k k
(5)
Then evidently
k
x
k
x xk
and by this linear transformations in the LP we introd ce
two non-negative variables in place of one unrestricted variable When there is a group of
such then similar transformation can be used for each, but there will be twice as many
variables 0 which would enter the problem.
c c c
n
x x x
c c c
n
T
x x x
T
T
a
ij
i m j n
i m m n
a
ij
m n
b b b
n
b b
b
m
T
b
k
k
th
b
k
x
k
l
x
k
x
k
x
k
x
x
k
vector x
1
1
1
1
]
1
>
>
'
<
'
> +
6
DMC 1752
52 ANNA UNIVERSITY CHENNAI
NOTES
Cj (Rs.) (Rs.) Basic Act. Qty. 4 x
1
3 x
2
0 S
1
0 S
2
0 S
3
Up-dating S
2
row Up-dating S3 row Up-dating Zj row
Cj (Rs.) Basic Act. Qty. 4 x
1
3 x
2
0 S
1
0 S
2
0 S
3
I Tableau
Pivot Column = x
1
Pivot Row =S
1
S
1
[S
1
:10/4 = 5/4, S
2
:8/2=4, S
3
: 6/1=6]
Pivot Element = 4
Updating S
2
row: 10/4 =2.5, 4/4=1, 2/4 =0.5, 1/4 =0.25, 0, 0
II Tableau:
0
0
0
S
1
S
2
S
3
Zj (Rs.) Cj-Zj (Rs.)
10
8
6
0
4
2
1
0
4
2
8/3
0
0
3
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
8 (2 5/2) =3
2-(2 1) =0
8/3 (2 1/2) = 5/3
0 (21/4) = - 1/2
1 (20) =1
0 (2 0) = 0
8 (2 5/2) =7/2
1-(1 1) =0
0 (21/2) = 1/2
0 (1 1/4) = - 1/4
0 (1 1/4) = -1/4
0 (1 0) = 0
1 (10) = 1
Qty: - 4 5/2 = 10
X
1
= 4
X
2
= 4 1/2=2
S
1
= 4 1/4 =2
S
2
= 0
S
3
= 0
4
0
0
X
1
S
2
S
3
Zj
Cj-Zj
5/2
3
7/2
10
1
0
0
4
0
5/3
-1/2
2
1
-1/2
-1/4
1
-1
0
1
1
1
1
0
0
1
0
0
RESOURCE MANAGEMENT TECHNIQUES
53 ANNA UNIVERSITY CHENNAI
NOTES
3 4 0 0 0
C
J
(Rs.)
Pivot row = S
1
x [x
1
+ 5/2 + =5, S
2
: 3+5/3 =9/5, S
3
: 7/2 + = -7
9/5 -> Smallest and
7/2-> this will not be considered (read again pivot row selection rule).
Pivot element 5/3
Up dating pivot row:
Updating x1 row: Updating S3: Updating Zj row:
III Tableau:
Basic Act.
Qty. X
1
X
2
S
1
S
2
S
3
0 X
1
8/5 1 0 2/5 -3/10 0
3 X
2
9/5 0 1 -3/10 3/5 0
4 S
3
22/5 0 0 -2/5 3/10 1
Z
J
59/5 4 3 7/10 3/5 0
C
J
- Z
J
0 0 -7/10 -3/5 0
0
5
3
5
1
,
10
3
3
5
2
1
, 1 , 0 ,
5
9
3
5
3
1 0 x
2
1
1 0 0 x
2
1
0
5
3
5
3
x
2
1
0
10
3
5
3
x
2
1
0
5
2
4
3
x
2
1
4
1
5
2
x
2
1
4
1
0 1 x
2
1
2
1
0 1 x
2
1
2
1
0 0 x
2
1
0 1 0 x
2
1
1
5
9 x 3
5
8
x 4 y Q
5
22
5
9
x
2
1
2
7
5
8
5
9
x
2
1
2
5
= =
=
=
+ = + =
DMC 1752
54 ANNA UNIVERSITY CHENNAI
NOTES
4.4 THE BIG M METHOD
The Big M Method to solve a linear programming problem
basic
feasible solution
all slack
The Big M Method
Steps
There are no +ve values in C
J
- Z
J
row, optional solution is reached.
Hence X
1
= 8/5, X
2
=9/5 and max. = 59/5 Ans.
In the previous discussions of the Simplex algorithm method starts with a
. In the examples so far, when put into standard LP form, conveniently
have an starting solution. An all slack solution is only a possibility when all of the
constraints in the problem have <= inequalities. Here, we are going to look at methods for
dealing with LPs having other constraint types.
Remember that simplex needs a place to start, it must from a basic feasible
solution then move to another basic feasible solution o improve the objective value.
With these assumptions, One can obtain an initial basi feasible solution /dictionary
by letting all slack variables be basic, all original riables be non basic
Obviously, these assumptions do not hold for every LP.
When a basic feasible solution is not readily apparent, the Big M method or the two-
phase simplex method may be used to solve the problem.
If an LP has any > or = constraints, a starting basic feasible solution may not be
readily apparent. The Big M method is a version of the Simplex Algorithm that first finds a
basic feasible solution by adding artificial variabl to the problem. The objective function
of the original LP must, of course, be modified to ensure that the artificial variables are all
equal to 0 at the conclusion of the simplex algorithm.
1. Modify the constraints so that the RHS of each constraint is nonnegative (This
requires that each constraint with a negative RHS be m tiplied by -1. Remember
that if you multiply an inequality by any negative number, the direction of the
inequality is reversed!). After modification, identify each constraint as a <, >, or =
constraint.
2. Convert each inequality constraint to standard form (I constraint i is a < constraint,
we add a slack variable s
i
; and if constraint i is a > constraint, we subtract an
excess variable e
i
).
3. Add an artificial variable a
i
to the constraints identified as > or = constraints at
the end of Step 1. Also add the sign restriction a
i
> 0.
RESOURCE MANAGEMENT TECHNIQUES
55 ANNA UNIVERSITY CHENNAI
NOTES
If all artificial variables are equal to zero in the optimal solution, we have found
the optimal solution to the original problem.
infeasible
4.5 EXAMPLES
4.5.1 Example 1
4. If the LP is a max problem, add (for each artificial v ble) -Ma
i
to the objective
function where M denote a very large positive number.
5. If the LP is a min problem, add (for each artificial variable) Ma
i
to the objective
function.
6. Solve the transformed problem by the simplex . Since ach artificial variable will
be in the starting basis, all artificial variables must be eliminated from row 0 before
beginning the simplex. (In choosing the entering variable, remember that M is a
very large positive number!).
If any artificial variables are positive in the optimal solution, the original problem is
Minimize z = 4x
1
+ x
2
Subject to:
3x
1
+ x
2
= 3
4x
1
+ 3x
2
>= 6
x
1
+ 2x
2
<= 4
x
1
, x
2
>= 0
By introducing a surplus in the second constraint and slack in the third we get the following
LP in standard form:
Minimize z = 4x
1
+ x
2
Subject to:
3x
1
+ x
2
= 3
4x
1
+ 3x
2
S
2
= 6
x
1
+ 2x
2
+ s
3
= 4
x
1
, x
2
, S
2
, s
3
>= 0
Neither of the first two constraint equations has a slack variable or other variable that
we can use to be basic in a feasible starting solution so we must use artificial variables. If
we introduce the artificial variables R
1
and R
2
into the first two constraints, respectively,
and MR
1
+ MR
2
into the objective function, we obtain:
DMC 1752
56 ANNA UNIVERSITY CHENNAI
NOTES
Basic z x
1
x
2
S
2
R
1
R
2
s
3
Solution
Basic
Z
x
1
x
2
S
2
R
1
R
2
s
3
Solution
Minimize z = 4x
1
+ x
2
+ MR
1
+ MR
2
Subject to:
3x
1
+ x
2
+ R
1
= 3
4x
1
+ 3x
2
S
2
+ R = 6
x
1
+ 2x
2
+ s
3
= 4
x
1
, x
2
, S
2
, s
3
, R
1
, R
2
>= 0
Set x
1
, x
2
and S
2
to zero and use R
1
, R
2
and s
3
as the starting basic feasible solution.
In table form, we have:
At this point, we have our starting solution in place t we must adjust our z-row to
reflect the fact that we have introduced the variables R
1
and R
2
with non-zero coefficients
(M).
We can see that if we substitute 3 and 6 into the objective function for R
1
and R
2
,
respectively, that z = 3M + 6M = 9M. In our tableau, wever, z is shown to be equal to
0. We can eliminate this inconsistency by substitutin out R
1
and R
2
in the z-row. Because
each artificial variables column contains exactly one 1, we can accomplish this by multiplying
each of the first two constraint rows by M and adding hem both to the current z-row.
New z-row = Old z-row + M*R
1
-row + M*R
2
-row
The tableau now becomes
z 1 -4 -1 0 -M -M 0 0
R
1
0 3 1 0 1 0 0 3
R
2
0 4 3 -1 0 1 0 6
s
3
0 1 2 0 0 0 1 4
z 1 -4+7M -1+4M -M 0 0 0 9M
R
1
0 3 1 0 1 0 0 3
R
2
0 4 3 -1 0 1 0 6
s
3
0 1 2 0 0 0 1 4
RESOURCE MANAGEMENT TECHNIQUES
57 ANNA UNIVERSITY CHENNAI
NOTES
select R
1
as our leaving variable
Two important considerations accompany use of the M method
Basic Z X
1
X
2
S
2
R
1
R
2
S
3
Solution
Now we have the expected form for our starting solution.
Apply the simplex method as before. Since this is a m imization problem we select
the entering variable with the most objective row coefficient. In this case, that is
x
1
. Calculating the intercept ratios we get:
R
1
3/3 = 1
R
2
6/4 = 1.5
s
3
4/1 = 4
So we .
Performing the Gauss-Jordan row operations, we obtain he new tableau:
In this tableau, we can see that x
2
will be our next entering variable and R
2
will leave.
We can thus see that the simplex algorithm will quickly remove both R
1
and R
2
from the
solution just as we intended when we assigned them the coefficient of M in the objective
function. If we continue to apply the simplex algorit m, we will find that the optimal solution
is:
x
1
= 2/5
x
2
= 9/5
S
2
= 1
with z = 17/5
The use of the penalty M may not always force the artificial variable to zero level by
the final iteration. This can occur in the case where the given LP has no feasible solution.
If any artificial variable is positive in the final iteration than the LP has no feasible solution
space.
Theoretically, the application of the M technique requires that M approaches infinity
but to computerize the solution algorithm, M must be f nite while being sufficiently large.
The pitfall in this case is, however, if M is too large it can lead to substantial round-off error
yielding an incorrect optimal solution. For this reason, most commercial LP solvers do not
apply the M-method but use, rather, an artificial variable method called the two-phase
Z 1 0 (1+5M)/3 -M (4-7M)/3 0 0 4+2M
x
1
0 1 1/3 0 1/3 0 0 1
R
2
0 0 5/3 -1 -4/3 1 0 2
s
3
0 0 5/3 0 -1/3 0 1 3
positive
DMC 1752
58 ANNA UNIVERSITY CHENNAI
NOTES
4.5.2 Example 2
Minimize
Step1
Step2
Step3
Step4
Step5
Step6
method. For educational purposes, TORA allows the implementation of the M-method
with a user selected value for M where M is sufficiently large to allow solution of the
problem. The definition of the term sufficiently large is dependent upon the problem in
question and requires some judgment for implementation.
z = 2x
1
+3x
2
s.t 1/2x
1
+1/4x
2
41
x
1
+3x
2
202
x
1
+x
2
=103
x
1
,x
2
0
: Make the right hand side of all constraints positive We dont have any negative
right hand side.
:Identify each constraint which is or =. Constraints 2 and 3 apply the above
conditions.
: For each<= constraint add a slack variable and for each constraint subtract an
excess variable to make them equalities.
1 1/2x
1
+1/4x
2
+s
1
=4
2 x
1
+ 3x
2
-e
1
=20
:For each>=or = constraint add an artificial variable a
i
(a
i
, s>0),which is to be chosen
in the starting bfs.
2 x
1
+3x
2
-e
1
+a
2
=20
3 x
1
+x
2
+ +a
3
=10
: If the LP is a min add +Ma
i
to the objective function. If it is a max add Ma
i
to the
objective function. Here M represents a very big number such that in the min problem
+Ma
i
is arbitrarily large so that a
i
the artificial variable is best to be chosen as zero, ch
we require . Similar reasoning applies in the max prob m.
Min z =2x
1
+3x
2
+Ma
2
+Ma
3
: Choose those artificial variables in the starting bfs and proceed to find the Optimal
Tableau. If in the end, artificial variables are zero find the solution, but if they are not
equal to zero then we dont have a optimal solution. Thus, original LP is infeasible. After
these steps we have the LP:
Min Z = 2x
1
+3x
2
+Ma
2
+Ma
3
s.t 1/2x
1
+1/4x
2
+s
1
=4
-2
1
0
0
0
1
0
1
0
0
-M
0
-1
0
0
0
1
0
3-4M
-1/4
-3
1
30+6M
3/2
6
10
DMC 1752
60 ANNA UNIVERSITY CHENNAI
NOTES
4.5.3 Example 3
Maximize Z = x
1
+ 5x
2
In the above example, we have the optimal tableau since reduced costs of all non
basic variables are non positive. However note that th optimal solution contains the very
big number M, which should not have been the case for min problem, thus we say that
our original LP was infeasible. We also say that from he fact that we have the artificial
variable a
2
in the basic variables, which shouldnt have been the case for a feasible LP.
Subject to:
3x
1
+ 4x
2
6
x
1
+ 3x
2
= 2
Where x
1
, x
2
0
Solution
Introducing slack and surplus variables
3x
1
+ 4x
2
+ x
3
= 6
x
1
+ 3x
2
x
4
= 2
Where: x
3
is a slack variable x
4
is a surplus variable.
The surplus variable x
4
represents the extra units.
Now if we let x
1
and x
2
equal to zero in the initial solution, we will have x
3
= 6 and x
4
= 2,
which is not possible because a surplus variable cannot be negative. Therefore, we need
artificial variables
Maximize x
1
+ 5x
2
MA
1
Subject to:
3x
1
+ 4x
2
+ x
3
= 6
x
1
+ 3x
2
x
4
+ A
1
= 2
Where: x
1
0, x
2
0, x
3
0, x
4
0, AA
1
0
.
RESOURCE MANAGEMENT TECHNIQUES
61 ANNA UNIVERSITY CHENNAI
NOTES
Table 2
C
j
1 5 0 0
C
B
Basic variables B x
1
x
2
x
3
x
4
Solution values b (= X
B
)
Z
j
C
j
2 / 3 0 0 5 / 3
C
j
1 5 0 0 M
C
B
Basic
variables B
x
1
x
2
x
3
x
4
A
1
Solution values
b (= X
B
)
Z
j
C
j
M 1 3M 5 0 M 0
Here, a
11
= 3, a
12
= 4, a
13
= 1, a
14
= 0, a
15
= 0, b
1
= 6 a
21
= 1, a
22
= 3, a
23
= 0, a
24
= 1,
a
25
= 1, b
2
= 2
Calculating Z
j
C
j
First column = 0 * 3 + (M) * 1 1 = M 1 Second column = 0 * 4 + (M) * 3 5 =
3M5 Third column = 0 * 1 + (M) * 0 0 = 0 Fourth column = 0 * 0 + (M) * (1)
0 = M Fifth column = 0 * 0 + (M) * 1 (M) = 0 Choose the smallest negative value
from Zj Cj. Substitute M = 0 Smallest negative value is 5. So second column is the 3
element column. Now find out the minimum positive value. Minimum (6 / 4, 2 / 3) = 2 / 3
So second row is the element row. Here, the pivot (key) element = 3. Therefore, A1
departs and x
2
enters.
Calculating values for table 2
Calculating values for first row
a
11
= 3 1 * 4 / 3 = 5 /3 ;a
12
= 4 3 * 4 / 3 = 0; a
13
= 1 0 * 4 / 3 = 1 ;a
14
= 0 (1) *
4 / 3 = 4 / 3 ;b
1
= 6 2 * 4 / 3 = 10 / 3
Calculating values for key row
a
21
= 1 / 3; a
22
= 3 /3=1; a
23
= 0 / 3 = 0; a
24
= 1 / 3; b
2
= 2 / 3
0 x
3
5 / 3 0 1 4 / 3 10 / 3
5 x
2
1 / 3 1 0 1 / 3 2 / 3
0 x
3
3 4 1 0 0 6
M A
1
1 3 0 1 1 2
DMC 1752
62 ANNA UNIVERSITY CHENNAI
NOTES
Table 3
.
4.6 SIMPLEX BIG M METHOD
Solution:
negative
C
j
1 5 0 0
C
B
Basic variables B x
1
X
2
x
3
x
4
Solution values b (= X
B
)
Z
j
C
j
11 / 4 0 5 / 4 0
Since all the values of Z
j
C
j
are positive, this is the optimal solution
x
1
= 0, x
2
= 3 / 2
Z = 0 + 5 * 3 / 2 =15 / 2
Maximize 3X
1
+ 4X
2
Subject to 2X
1
+ X
2
<= 600
X
1
+ X
2
<= 225
5X
1
+ 4X
2
<= 1000
X
1
+ 2X
2
>= 150
X
1
, X
2
>= 0
Standard form:
Maximize 3X
1
+ 4X
2
Subject to 2X
1
+ 3X
2
+ S
1
= 600
X
1
+ X
2
+ S
2
= 225
5X
1
+ 4X
2
+ S
3
= 1000
X
1
+ 2X
2
- S
4
= 150
X
1,
X
2
, S
1
, S
2
, S
3
, S
4
>= 0
Not in canonical form because there is no basic variable in the fourth equation.
Therefore we add an artificial variable to that equation (R
1
) and give it a large
coefficient in the objective function, to penalize it:
Maximize 3X
1
+ 4X
2
Subject to 2X
1
+ 3 X
2
+ S
1
= 600
X
1
+ X
2
+ S
2
= 225
5X
1
+ 4X
2
+S
3
= 1000
X
1
+ 2X
2
- S
4
+ R
1
= 150
X
1
, X
2
, S
1
, S
2
, S
3
, S
4
, R
1
>= 0
0 x
4
5 / 4 0 3 / 4 1 5 / 2
5 x
2
3 / 4 1 1 / 4 0 3/2
RESOURCE MANAGEMENT TECHNIQUES
63 ANNA UNIVERSITY CHENNAI
NOTES
X
1
X
2
S
4
S
1
S
2
S
3
R
1
B
X
1
X
2
S
4
S
1
S
2
S
3
R
1
b
X
1
X
2
S
4
S
1
S
2
S
3
R
1
b
Not in Canonical form because of +M entry on Z row for one basic variable (R
1
).
Pivot to replace +M on Z row by zero - Z row M*R
1
row:
Z -3 -4 0 0 0 0 +M
S
1
2 3 0 1 0 0 0 600
S
2
1 1 0 0 1 0 0 225
S
3
5 4 0 0 0 1 0 1000
R
1
1 2 -1 0 0 0 1 150
Z (-3-M) (-4-2M) M 0 0 0 0 -150M
S
1
2 3 0 1 0 0 0 600
S
2
1 1 0 0 1 0 0 225
S
3
5 4 0 0 0 1 0 1000
R
1
1 2 -1 0 0 0 1 150
X
1
X
2
S
4
S
1
S
2
S
3
R
1
b
Z -1 0 -2 0 0 0 M 800
S
1
0 3/2 1 0 0 -3/2 375
S
2
0 0 1 0 - 150
S
3
3 0 2 0 0 1 -2 700
X
2
1 - 0 0 0 75
Z -1/3 0 0 4/3 0 0 M 800
S
4
1/3 0 1 2/3 0 0 -1 250
S
2
1/3 0 0 -1/3 1 0 0 25
S
3
7/3 0 0 -4/3 0 1 0 200
X
2
2/3 1 0 1/3 0 0 0 200
DMC 1752
64 ANNA UNIVERSITY CHENNAI
NOTES
4.7 TWO PHASE METHOD
Motivation
Duality theory says
Remark
The Two-Phase Method
Artificial variables and auxiliary problem
X
1
X
2
S
4
S
1
S
2
S
3
R
1
b
Optimal tableau: Solution: X
1
= 75 X
2
= 150 Z = 825
Consider the LP
Max c
T
x
(P) s.t Ax = b
X 0
We have assumed that a feasible basis is always given. But in practice, it is usually not easy
to spot a feasible basis
: Optimal solutions to (P) and its dual are solutions to
Ax = b, X 0
A
T
y c
c
T
x b
T
y = 0
So, is as hard as solving finding feasible solution LP. Two-phase method: an algorithm
that solves (P) in two phases, where
In Phase 1, we solve an auxiliary LP problem to either get a feasible basis or
conclude that (P) is infeasible.
In Phase 2, we solve (P) starting from the feasible ba found in Phase 1.
: From Phase 1, we see that finding feasible basis is as easy as solving LP.
Consider the LP
Max c
T
x
(P) s.t Ax = b
X 0
Z 0 0 0 1 1 0 M 825
S
4
0 0 1 1 -1 0 -1 225
X
1
1 0 0 -1 3 0 0 75
S
3
0 0 0 1 -7 1 0 25
X
2
0 1 0 1 -2 0 0 250
DMC 1752
66 ANNA UNIVERSITY CHENNAI
NOTES
Example (contd)
Any feasible solution of (A) has objective value 0.
=> (A) has optimal value 0.
[X*
1
, x*
2
, x*
3
, x*
4
]
T
is feasible for (P),
=> [x*
1
, x*
2
, x*
3
, x*
4
, 0, 0]
T
is feasible for (A).
=> [x*
1
, x*
2
, x*
3
, x*
4
, 0, 0]
T
is optimal for (A) with value 0.
[X*
1
, x*
2
, x*
3
, x*
4
, u*
1
, u*
2
]
T
is optimal for (A) with value 0
=> u*
1
= u*
2
= 0
=> [x*
1
, x*
2
, x*
3
, x*
4
]
T
is feasible for (P).
So (P) has a feasible solution () (A) has optimal value 0.
In general, the auxiliary problem is never unbounded; its optimal value is 0.Using
the same argument as before, we can prove an LP problem (P) has a feasible solution its
auxiliary problem (A) has an optimal value 0.
The two-phase method constructs and solves the auxiliary problem (A) in the first phase.
If (A) has optimal value < 0, we conclude that (P) is feasible.
If (A) has optimal value = 0, we construct a feasible for (P) and solve it in
the second phase.
Max (z) = -X
1
- X
3
+ 2X
4
(P) s.t X
1
+ 2X
2
+ X
4
= 4
X
2
X
3
+ X
4
= 1
X
1
, X
2
, X
3
, X
4
0
Max (w) = -X
5
X
6
(A) s.t X
1
+ 2X
2
+ X
4
+ X
5
= 4
X
2
X
3
+ X
4
+ X
6
= 1
X
1
, X
2
, X
3
, X
4
, X
5
, X
6
0
[Let x
5
= u
1
and x
6
= u
2
.]
We solve the auxiliary problem starting from the obvious feasible basis B = {5, 6}.
The corresponding tableau is
W X
1
3X
2
+ X
3
-2X
4
= -5
X
1
+ 2X
2
+ X
4
+ X
5
= 4
X
2
X
3
+ X
4
+ X
6
=1
DMC 1752
68 ANNA UNIVERSITY CHENNAI
NOTES
4.9 EXERCISES
Convert the following problems to standard form LP:
1. Maximize: z = 6
1
+ 4
2
+ 10
s.t.: 2
1
+ 3
2
+ 5
3
50
4
1
+ 2
2
+ 7
3
60
1
+
2
1
2
+
3
1
3
20
1
5,
2
4,
3
3.75
2. Minimize : z = 2
1
+ 5
2
+ 7
3
s.t.:
1
+ 2
2
+
3
= 5
4
1
+ 6
2
+ 2
3
= 12
2
0,
3
0
And solve the problem.
3. Maximize: z =
1
+ 2
2
3
3
s.t.: 3 3
1
5
2
15,
2
0,
3
0.
4. Minimize: z = |
1
| - 2|
2
| + |
3
|
s.t.:
1
+
2
3
10
1
3
2
+ 2
3
5
5. Minimize: z = |
1
3| + |
2
+ 4|
s.t.:
1
+
2
10
2
1
2
3
x x x
3
x x x
x x x
x x x
x x x
x x x
x x x
x x x
x x
x x x
x x x x
x x x
x x x
x x x
x x
x x
x x
DMC 1752
72 ANNA UNIVERSITY CHENNAI
NOTES
4. Selection of entering variable:
Ratio = (Cost coefficients/ -1 Elements of pivotal row)
5. Pivotal operation:
6. Check for optimality:
Cost coefficients, corresponding to all the negative
elements of the pivotal row, are identified. Their rat s are calculated after changing
the sign of the elements of pivotal row, i.e.,
The column corresponding to minimum ratio is identified as the pivotal column and
associated decision variable is the entering variable.
pivotal operation is exactly same as in the case of simplex
method, considering the pivotal element as the intersection of pivotal row and
pivotal column.
If all the basic variables have nonnegative values then the
optimum solution is reached, otherwise, Step 3 to 5 ar repeated until the optimum is
reached.
RESOURCE MANAGEMENT TECHNIQUES
73 ANNA UNIVERSITY CHENNAI
NOTES
UNIT II
CHAPTER 1
TRANSPORTATION PROBLEM
1. TRANSPORTATION PROBLEM
.
1.1 TRANSPORTATION MODELS
objective
1.2 MATHEMATICAL FORMULATION
The transportation problem is a special class of the linear programming problem. It
deals with the situation in which a commodity is trans orted from to
The objective is to determine the amount of commodity o be transported from each source
to each destination so that the total transportation c t is minimum.
Transportation models or problems are primarily concerned with the optimal (best
possible) way in which a product produced at different factories or plants (called supply
origins) can be transported to a number of warehouses called demand destinations). The
in a transportation problem is to fully satisfy the destination requirements within
the operating production capacity constraints at the m um possible cost. Whenever
there is a physical movement of goods from the point o manufacture to the final consumers
through a variety of channels of distribution (wholesa rs, retailers, distributors etc.), there
is a need to minimize the cost of transportation so as to increase the profit on sales.
Transportation problems arise in all such cases. It aims at providing assistance to the top
management in ascertaining how many units of a particu ar product should be transported
from each supply origin to each demand destinations to that the total prevailing demand for
the companys product is satisfied, while at the same me the total transportation costs are
minimized.
Consider m-plant locations (origins) as and the n-retail shops
(destination) as respectively. Let , be the amount
available at the plant . Let the amount required at the shop Dj be bj
Let the cost of transporting one unit of soft drink fr i
th
origin to destination be
If be the amount of soft drink to be transported from
origin to destination , then the problem is to determine so as to Minimize
Sources Destinations
O
1
, O
2
, ., O
m
D
1
, D
2
, .., D
n
a
i
0, i= 1,2, .m
i
th
O
i
j
th
0, j=
1,2,.n.
j
th
C
ij
, i= 1,2, .m, j=1,2,.n. x
ij
0
i
th
jth x
ij
DMC 1752
74 ANNA UNIVERSITY CHENNAI
NOTES
THEOREM 1.1
Note.
The transportation table:
Supply
Requirement
= =
=
=
=
=
= =
=
=
= =
=
m
i
n
j
ij ij
c x z
n j
m
i
j
b
ij
x
m
i
n
j
j i
b a
n
j
i
a
ij
x and
j
b
m
i
ij
x
m+n equations mn
1 1
Subject to the constraint
and x
ij
0, for all i and j.
. ,... 2 , 1 ,
1
This LPP is called a
A necessary and sufficient condition for the existence of a feasible solution to the
transportation problem is that
1 1
The set of constraints
1 1
Represents in non-negative variables. Each variable x
ij
appears
in exactly two constraints, one is associated with the origin and the other is associated with
the destination.
If we are putting in the matrix from, the elements of A are either 0 or 1.
D
1
D
2
D
n
O
1
c
11
c
12
.. c
1n
a
1
O
2
c
21
c
22
.. . c
2n
a
2
.. . . .. .. :
O
m
c
m1
c
m2
. c
mn
a
m
Transportation Problem.
Remark.
RESOURCE MANAGEMENT TECHNIQUES
75 ANNA UNIVERSITY CHENNAI
NOTES
1.2.1 Formulation of Transportation Problem as a Linea Programming Model
Objective-Function
Balanced Transportation Problem
Definition. (Loop). In a transportation table, an ordered set of four or more cells is
said to form a loop if:
I. Any two adjacent cells in the ordered set lie in the same row or in the same
column.
II. Any three or more adjacent cells in the ordered set do not lie in the same row or in
the same column.
A Transportation problem is simply a special case of Linear Programming problem.
Hence to convert into a LP model, the same basics steps are employed which we have
already described in the previous section/chapters.
Let P denote the plant (factory) where the goods are b ng manufactured and denote
the warehouse (go down) where the finished products are stored by the company before
shipping to various destinations. Further, Let, x
ij
= quantity (amount of goods) shipped
from plant P to the warehouse W
j
, and C
ij
= transportation cost per unit of shipping from
plant P to the Warehouse W
j
.
The objection function can be represented as:
Minimize
Z =C
11
X
11
+ C
12
X
12
+ C
13
X
13
+ C
21
X
21
+ C
22
X
22
+ C
23
X
23
+ C
31
X
31
+ C
32
X
32
+ C
33
X
33
Either, x
ij
for all values of i and j (ie; x
11
, x
12
, all such values are 0) It is further
assumed that: S
1
+ S
2
+ S
3
= D
1
+ D
2
+ D
3
i.e. the total supply available at the plants
exactly matches the total demand at the destinations. ence, there is neither excess supply
nor excess demand.
Supply (from various sources) is written in the rows, ile a column is an expression
for the demand of different warehouses. In general, if a transportation problem has m rows
and n column, then the problem is solvable if there are exactly (m + n1) basic variables.
Supply constraints X
11
+ X
12
+ X
13
= S
1
X
21
+ X
22
+ X
23
= S
2
X
31
+ X
32
+ X
33
= S
3
Demand constraints X
11
+ X
12
+ X
13
= D
1
X
11
+ X
12
+ X
13
= D
1
X
11
+ X
12
+ X
13
= D
1
i
i
DMC 1752
76 ANNA UNIVERSITY CHENNAI
NOTES
Unbalanced Transportation Problem
unbalanced
Two situations are possible:-
Example.
Capacity constraints:
Requirement constraints:
A transportation problem is said to be if the supply and demand are not
equal.
i. If supply < demand, a dummy supply variable is introduced in the equation to
make it equal to demand.
ii. If demand < supply, a dummy demand variable is introduced in the equation to
make it equal to supply. Formulate the following trans tation problem as a LP
model:
Formulating as a Linear Programming model, we have:
Minimise
Z =11x
11
+ 6x
12
+ 15x
13
+ 3x
14
+ 7x
21
+ 8x
22
+ 4x
23
+ 13x
24
+ 22x
31
+ 17x
32
+ 8x
33
+ 31x
34
Subject to:
x
11
+ x
12
+ x
13
+ x
14
=21
x
21
+ x
22
+ x
23
+ x
24
= 23
x
31
+ x
32
+ x
33
+ x
34
= 29
Notation used:
x
ij
= no. of units transported from source to destination J
x
11
+ x
21
+ x
31
= 6
X12
+ x
22
+ x
32
= 20
x
13
+ x
23
+ x
33
= 22
x
14
+ x
24
+ x
34
= 25
Hence the transportation problem is successfully formulated as a LP model.
Designation
W
1
W
2
W
3
W
4
(Supply)
Source Capacity
11 06 15 03
P
1
X
11
X
12
X
13
X
14
21
07 08 04 13
P
2
X
21
X
22
X
23
X
24
23
22 17 08 31
P
3
X
31
X
32
X
33
X
34
29
Requirement
(Demand) 06 20 22 25 73
i
RESOURCE MANAGEMENT TECHNIQUES
77 ANNA UNIVERSITY CHENNAI
NOTES
1.3 TRANSPORATION PROBLEM STEPS INVOLVED IN SOLVING A
TRANSPORTATION PROBLEM
Step I
Step II
Step III
Step IV
Remarks
Step V
Initial Feasible Solutions
a. The North-West Corner Rule (NWC Rule)
From the given problem, express the objective function which must be minimized a
long with the relevant constraints.
Set up a transportation table, where supply or sources (factories, plants) are denoted
as rows and demand or destinations (warehouses, market are denoted by columns.
Find out an initial feasible solution by using one of he three rules.
A solution so obtained is said to be feasible if and o ly if, such a solution has allocations
in the total number of (m + n 1) cells with independent positions.
When it is not possible to change an individual alloca on in any cell without violating
the demand and/or supply constraints or changing the relative positions of the allocations,
the position is said to be independent.
By ascertaining the opportunity costs, the solution obtained above can be checked
for optimality. Opportunity cost may be defined as the cost of sacrifice. Here, it denotes
the reduction in cost due to the inclusion of a particular cell in the solution. An optimum
solution is obtained when there is a positive opportunity cost for each of the empty cells.
When the solution so obtained is not found to be optimal, that empty cell which
results in the largest saving is included and the above steps are again repeated.
In a transportation problem, the initial feasible solu ion can be generated by a number
of methods. Three of the most common methods are discussed below:
As the name itself suggests, under this rule, first of all the upper-left or the north-west
corner of each cell is selected. It is one of the simp t methods which provides an initial
feasible solution to a transportation problem. The ste involved are as follows:
DMC 1752
78 ANNA UNIVERSITY CHENNAI
NOTES
Step I
Step II
Step III
Step IV
b. Least Cost Method (LCM)
Step I
Step II
Step III
Step IV
c. Vogels Approximation Method (VAM)
Upper-left corner cell of the transportation table is elected. Allocate as many units to
this cell as possible. This will be the least value of demand and supply. This process is
repeated for all the respective rows and columns.
After exhausting the supply for the first row, move down vertically to the Ist cell in
2nd row and Ist column. Then repeat the Step I.
After exhausting the demand for the first column, move along horizontally to the next
cell in the IInd column & Ist row. Then repeat Step I.
Where demand is equal to supply for a cell, then further allocation is made in either
the next row or the next column cell. This procedure is continued till the total quantity that
is available is fully allocated to the various cells, required.
This is a time-saving method since it drastically reduces the numerous calculation
required to be done under the northwest corner rule. The following steps are involved in
this method:
Out of all rows and columns in the transportation table, select that cell which has the
lowest (minimum) transportation cost.
Where the smallest cost is not unique i.e., there are her cells having the same smallest
cost, select any cell which has this smallest cost.
To the cell chosen in the above step, allocate maximum possible units. Eliminate that
row or the column where either the demand is satisfied or the supply is exhausted.
For the reduced table so obtained, repeat the above st s till total demand and supply
are exhausted.
The Steps involved in this method are given below:-
RESOURCE MANAGEMENT TECHNIQUES
79 ANNA UNIVERSITY CHENNAI
NOTES
Step I
Step II
Remarks
Step III
Step IV
Step V
Remarks
1.3.1 Methods Employed to Find the Optimal Solution to a Transportation Problem
a. Stepping Stone Method
Step I
Step II
Calculate the penalty for all rows and columns. (Penalty is the difference between the
smallest and the next smallest cost)
Select the row or column having maximum penalty. In th row or column, select the
cell having the least cost. Allocate maximum possible its (quantity) to this lowest cost
cell.
In case of a tie, select the row/column having minimum cost. If, still, a tie persists,
select the row/column having the maximum possible assignments or you may simply select
any row or column in case of a tie without considering minimum costs.
Reduce the demand or supply by the amount assigned to he cell.
If row supply is zero, eliminate it
If column demand is zero, eliminate it
If both are zero, eliminate both.
Again calculate penalty and repeat the same steps.
At the end, check that the total number of filled cell = M + N 1. only then the initial
solution would be feasible. If filled cells are < M + 1, an empty cell is to be filled in a
particular manner.
Basically 2 methods are widely used:-
The main steps involved in this method are as follows.
After determining the initial feasible solution, check that the number of occupied cells
is equal to M + N 1 (M rows, N columns).
Test each of the unoccupied cells for evaluating its cost effectiveness as under:
DMC 1752
80 ANNA UNIVERSITY CHENNAI
NOTES
turning points stepping stones.
Step III
Step IV
b. Modified Distribution (MODI) Method
Step I
Step II
Step III
Step IV
i. Select an empty cell. Use the most direct route horizontally or vertically which
passes through 3 or more occupied cells to trace a closed path. The cells at the
: are known as
ii. Each corner cell of the path so traced is assigned a positive (+) and a negative
( ) sign alternately. Start with the unoccupied cell which is to be evaluated and
assign this cell a positive (+) sign.
iii. Sum all the unit cost figures in each cell having a po tive sign and then subtract all
the unit cost figures having a negative sign. This gives the net change in the cost.
This step has to be repeated till the cost is calculated for all the unoccupied cells.
An optimum solution is reached, when all the net changes so calculated are 0.Where
such an optimum solution has not been reached, go to S IV.
The highest negative net cost unoccupied cell is selec ed. Find the maximum units that
can be given to a cell having negative sign on the clo path relative to the unoccupied
cell. This number has to be added to the unoccupied an all other cells on the closed path
having a positive sign. Finally, this number is to be btracted from cells on the path which
have a minus sign. The process must be repeated till a optimal solution is obtained.
The following are the steps involved in the Modified D tribution (MODI) method of
testing the optimality of a feasible solution in a transportation problem:-
By using any one of the three methods discussed above, obtain an initial feasible
solution, having M + N 1 allocation in independent p ition.
Assign an arbitrary value (zero) to one of the variabl s without violating the equations.
(Since there are M + N 1 occupied cells, there will M + N 1 equation).
For every empty cell, calculate the improvement index .e.; its opportunity cost. This
has to be calculated by adding the corresponding row and column number and then
subtracting the actual cost of this cell from it. The olution is optimal, if the opportunity cost
of all the empty cells > 0.
Where the solution is not optimal i.e.; we have empty lls with negative improvement
index (opportunity cost), select the empty cell having the largest value of negative opportunity
cost.
d d
d
d
RESOURCE MANAGEMENT TECHNIQUES
91 ANNA UNIVERSITY CHENNAI
NOTES
Solution
Table 1
Dealer Factory
1 2 3 4
Supply
A
B
C
Requirement
Dealer Supply Factory
1 2 3 4
A
B
C
Requirement
An initial basic feasible solution is obtained by Matr x Minimum Method.
Number of basic variables =m+n1=3+41=6. Since number of basic variables is
less than 6,it is a degenerate transportation problem.
To resolve degeneracy, making use of an artificial qua ity (d),the quantity d is assigned
to that unoccupied cell, which has the minimum transpo ation cost. The quantity d is so
small that it does not affect the supply and demand co traints.
In the above table, there is a tie in selecting the smallest unoccupied cell. In this
situation, choose any cell arbitrarily.Select the cell C2 as shown in the following table.
2 4 1000
4 4 3 700
3 2 900
900 800 500 400
2 4 1000
4 4 3 700
3 900 + d
900 800 + d 500 400 2600 + d
DMC 1752
92 ANNA UNIVERSITY CHENNAI
NOTES
Table 2
Table 3
Unoccupied
cells
Increase in cost per
unit of reallocation
Remarks
A3
A4
B1
B3
B4
C1
Dealer Factory
1 2 3 4
Supply
A
B
C
Requirement
Now, use the stepping stone method to find an optimal olution.
Calculating opportunity cost
The cell B1 is having the maximum improvement potential, which is equal to -2. The
maximum amount that can be allocated to B1 is 700 and is will make the current basic
variable corresponding to cell B2 non basic. The impro ed solution is shown in the following
table.
The optimal solution is
2 X 200 + 2 X 800 + 4 X 700 + 2 X d + 1 X 500 + 0 X 400 = 5300 + 2d.
Notice that is a very small quantity so it can be neglected in the optimal solution. Thus,
the net transportation cost is Rs. 5300
+2 2 + 2 1 = 1 Cost Increases
+4 2 + 2 0 = 4 Cost Increases
+4 6 + 2 2 = 2 Cost Decreases
+4 6 + 2 1 = 1 Cost Decreases
+3 6 + 2 0 = 1 Cost Decreases
+3 2 + 2 2 = 1 Cost Increases
2 4 1000
6 4 3 700
3 900
900 800 500 400 2600
d
RESOURCE MANAGEMENT TECHNIQUES
93 ANNA UNIVERSITY CHENNAI
NOTES
1.10 EXERCISE
Consider the transportation problem having the followi parameter table
A) This problem has 3 special characteristics:
Number of sources= Number of destination
Each supply=1
Each destination=1
Transportation problem with 3 characteristics are of a special type called the
assignment problem. Use the integer solution property explain why this type of
transportation problem can be interpreted as assigning sources to destination on a one-to-
one basis.
B) How many basic variables are there in every BF solutio How many of these are
degenerate basic variable (=0)?
Destination
1 2 2 2 Supply
1 7 4 1 4
2 4 6 7 2 1
Source 3 8 5 4 6 1
4 6 7 6 3 1
Demand 1 1 1 1
DMC 1752
94 ANNA UNIVERSITY CHENNAI
NOTES
CHAPTER 2
VARIANTS OF THE ASSIGNMENT PROBLEM
2.1 ASSIGNMENT PROBLEM
Structure of assignment problem
2.1.1 Formulation of assignment problem
We have already discussed about one of the benchmark problems called transportation
problem and its formulation. The assignment problem is a particular class of transportation
linear programming problems with the supplies and demands equal to integers (often 1).
Since all supplies, demands, and bounds on variables a integers, the assignment problem
relies on an interesting property of transportation pr lems that the optimal solution will be
entirely integers. in this section, the structure and rmulation of assignment problem are
discussed. Also, traveling salesman problem, which is special type of assignment problem,
is described.
As mentioned earlier, assignment problem is a special ype of transportation problem
in which
1. Number of supply and demand nodes is equal.
2. Supply from every supply node is one.
3. Every demand node has a demand of one.
4. Solution is required to be all integers.
The goal of a general assignment problem is to find an optimal assignment of machines
(laborers) to jobs without assigning an agent more than once and ensuring that all jobs are
completed. The objective might be to minimize the tota time to complete a set of jobs, or
to maximize skill ratings, maximize the total satisfac ion of the group or to minimize the cost
of the assignments. This is subjected to the following requirements:
1. Each machine is assigned not more than one job.
2. Each job is assigned to exactly one machine.
Consider labourers to whom tasks are assigned. No labourers can either sit idle
or do more than one task. Every pair of person and assigned work has a rating. This
ratingmay be cost, satisfaction, penalty involved or time taken to finish the job. There will
be such combinations of persons and jobs assigned. Thus, he optimization problem is
to find such man- job combinations that optimize the sum of ratings among all. The
formulation of this problem as a special case of trans rtation problem can be represented
by treating as and the as . The supply available at
each source is 1 and the demand required at each destination is 1.The cost of assigning
(transporting) laborer to task is
m n
N
2
laborers sources tasks destinations
i j c
ij
RESOURCE MANAGEMENT TECHNIQUES
95 ANNA UNIVERSITY CHENNAI
NOTES
2.2 EXAMPLES
2.2.1 Example 1
Table 1
It is necessary to first balance this problem by adding a dummy laborer or task
depending on whether m<n or m>n, respectively. The cos coefficient for this dummy
will be zero.
Let
Thus the above model can be expressed as
Since each task is assigned to exactly one laborer and each laborer is assigned only
one job, the constraints are
Due to the special structure of the assignment problem the solution can be found out
using a more convenient method called Hungarian method which will be illustrated through
an example below.
:
Consider three jobs to be assigned to three machines. he cost for each combination
is shown in the table below. Determine the minimal job machine combinations.
Machine
Job
1 2 3
1 5 7 9 1
2 14 10 12 1
3 15 13 16 1
1 1 1
c
ij
a
i
b
j
DMC 1752
96 ANNA UNIVERSITY CHENNAI
NOTES
Solution:
Step 1:
Table 2
Step 2:
Table 3
2.2.2 Example 2
Table 4
Create zero elements in the cost matrix (zero assignment) by subtracting the smallest
element in each row (column) from the corresponding ro (column). After this exercise,
the resulting cost matrix is obtained by subtracting 5 from row 1, 10 from row 2 and 13
from row 3.
Repeating the same with columns, the final cost matrix is
The italicized zero elements represent a feasible solu on. Thus the optimal assignment
is (1,1), (2,3) and (3,2). The total cost is equal to (5 +12+13). In the above example,
it was possible to obtain the feasible assignment. But in more complicated problems,
additional rules are required which are explained in t next example.
Consider four jobs to be assigned to four machines. Th cost for each combination is
shown in the table below. Determine the minimal job achine combinations.
1 2 3
1 0 2 4
2
4 0 2
3
2 0 3
1 2 3
1 2 2
2 4 0
3 2 3
Machine
Job
1 2 3 4
1 1 4 6 3 1
2 8 7 10 9 1
3 4 5 11 7 1
4 6 7 8 5 1
1 1 1 1
0
0
0
a
i
b
j
RESOURCE MANAGEMENT TECHNIQUES
97 ANNA UNIVERSITY CHENNAI
NOTES
Solution:
Step 1:
Step 2:
Table 5
Step 3:
Table 6
Step 4:
Table 7
Create zero elements in the cost matrix by subtracting the smallest element in each
row from the corresponding row.
Repeating the same with columns, the final cost matri is
Rows 1 and 3 have only one zero element. Both of these are in column 1, which
means that both jobs 1 and 3 should be assigned to machine 1. As one machine can be
assigned with only one job, a feasible assignment to t zero elements is not possible as in
the previous example.
Draw a minimum number of lines through some of the rows and columns so that all
the zeros are crossed out.
Select the smallest uncrossed element (which is 1 here). Subtract it from every
uncrossed element and also add it to every element at he intersection of the two lines. This
will give the following table.
1 2 3
4
1
0 3 5 2
2 1 0 3 2
3 0 1 7 3
4 1 2 3 0
1 2 3
4
1
2 1 1
2 2 0 2
3 0 3 2
4
2 2 0
1 2 3 4
1 0 3 2 2
2 1 0 0 2
3 0 1 4 3
4 1 2 0 0
0
0
0
0
DMC 1752
98 ANNA UNIVERSITY CHENNAI
NOTES
Formulation of Traveling Salesman Problem (TSP) as an signment Problem
Solution Procedure
2.2.3 Example 3:
This gives a feasible assignment (1,1), (2,3), (3,2) and (4,4) with a total cost of
1+10+5+5 = 21. If the optimal solution had not been obtained in the last step, then the
procedure of drawing lines has to be repeated until a easible solution is achieved.
A traveling salesman has to visit cities and return to the starting point. He has to st t
from any one city and visit each city only once. Suppo he starts from the city and the
last city he visited is . Let the cost of travel from city to city be . Then the
objective function is
Subject to the constraints
Solve the problem as an assignment problem using the method used to solve the
above examples. If the solutions thus found out are cyclic in nature, then that is the final
solution. If it is not cyclic, then select the lowest try in the table (other than zero). Delete
the row and column of this lowest entry and again do t zero assignment in the remaining
matrix. Check whether cyclic assignment is available. f not, include the next higher entry in
the table and the procedure is repeated until a cyclic assignment is obtained.
The procedure is explained through an example below.
Consider a four city TSP for which the cost between the city pairs are as shown in the
figure below. Find the tour of the salesman so that the cost of travel is minimal.
n
k
th
m i
th
j
th
c
ij
RESOURCE MANAGEMENT TECHNIQUES
99 ANNA UNIVERSITY CHENNAI
NOTES
Table 8
Solution:
Step 1:
Table 9
Step 2:
The optimal solution after using the Hungarian method is shown below.
The optimal assignment is 1 4, 2 3, 3 2, 4 1 which is not cyclic.
Consider the lowest entry 2 of the cell (2,1). If there is a tie in selecting the lowest
entry, then break the tie arbitrarily. Delete the 2
nd
row and 1
st
column. Do the zero assignment
in the remaining matrix. The resulting table is
1 2 3 4
1 4 9 5
2 6 4 8
3 9 4 9
4 5 8 9
1 2 3 4
1 0 5
2 2 3
3 5 4
4 3 4
0
0
0
0
DMC 1752
100 ANNA UNIVERSITY CHENNAI
NOTES
Table 10
2.3 EXERCISE
Timematrix (Time in hrs.)
Thus the next optimal assignment is 1 4, 2 1, 3 2, 4 3 which is cyclic. Thus
the required tour is 1 4 3 2 1 and the total travel cost is 5 + 9 + 4 + 6 = 24.
1. Study the following problem:-
Solve this assignment problem so as to minimize the time in hours.
2. A job has four men available for work on four separ te jobs. Only one man can work on
any one job. The cost of assigning each man to each job is given in the following table. The
objective is to assign men to jobs such that the total cost of assignment is minimum.
Job Person
1 2 3 4
1 6 12 3 7
2 13 10 12 8
3 2 5 15 20
4 2 7 8 13
Jobs
Person 1 2 3 4
A 20 25 22 28
B 15 18 23 17
C 19 17 21 24
D 25 23 24 24
RESOURCE MANAGEMENT TECHNIQUES
101 ANNA UNIVERSITY CHENNAI
NOTES
2.4 ASSIGNMENT MODELS-VARIANTS
minimization
technique
1. Maximization-Objective Problem
2. Unbalanced Problem
3. Multiple Solutions
4. Traveling Salesman Problem
+
+ =
=
( )
+
0 1 2 3 4 5 6 7
0
1
2
3
4
5
6
7
x
1
x
2
RESOURCE MANAGEMENT TECHNIQUES
105 ANNA UNIVERSITY CHENNAI
(4,3)
NOTES
It can be seen that the solution is
7
3
3 x ,
7
5
4 x
2 1
and the optimal value of
7
4
17 Z . The feasible solutions accounting the integer constraints are shown by red
dots. These points are called integer lattice points. he original feasible region is reduced
to a new feasible region by including some additional aints such that an extreme
point of the new feasible region becomes an optimal solution after accounting for the integer
constraints.
The graphical solution for the example previously discussed taking and as
integers are shown below. Two additional constraints (MN and OP) are included so that
the original feasible region ABCD is reduced to a new easible region AEFGCD. Thus the
solution for this ILP is and the optimal value is.
Gomary proposed a systematic method to develop these a itional constraints known as
. Generation of Gomory Constraints:
Let the final table of an LP problem consist of basic variables (original variables) and
non basic variables (slack variables) as shown in the le below. The basic variables are
represented as (i=1,2,,n) and the non basic variables are represente as y
j
(j=1,2,,m).
7
3
3 ,
7
5
4
15
7
4
17
= =
=
( )
=
=
x
1
x
2
Gomory constraints
n m
x
i
Z
Z
0 1 2 3 4 5 6 7
0
1
2
3
4
5
6
7
D C
B
A
Additional constraints
G
E
F
x
1
x
2
O
P
M
N
DMC 1752
106 ANNA UNIVERSITY CHENNAI
NOTES
Table 1
Choose any basic variable
i
x with the highest fractional value. If there is a tie etween two
basic variables, arbitrarily choose any of them as
i
x . Then from the equation of table,
m
1 j
j ij i i
y c b x
.. (1)
Express both
i
b and
ij
c as an integer value plus a fractional part.
) 3 ........( c c
) 2 ........( b b
ij ij ij
i i i
Where
i
b ,
ij
c denote the integer part and
i
,
ij
denote the fractional part
i
will be a
strictly positive fraction 1 0
i
and is a non-negative fraction 1 0
ij
.
Substituting equations (2) and (3) in (1), equation (1 can be written as
m
1 j
j ij i i j
m
1 j
ij i
y c b x y
. (4)
For all the variables
i
x and
j
y to be integers, the right hand side of equation (4) should
be an integer.
j
m
1 j
ij i
y
integer (5)
Since
ij
are non-negative integers and
j
y are non-negative integers, the term j
m
1 j
ij
y
will always be a non-negative number. Thus we have,
Variables
Basis Z
1 2
1 2
Z 1 0 0 0 0
1
0 1 0 0 0
1
2
0 0 1 0 0
2
0 0 0 1 0
0 0 0 0 1
i
th
x x
i
x
n
x y y
j
y
m
y
r
b
c
1
c
2
c
j
c
m
b
x c
11
c
12
c
1j
c
1m
b
x c
21
c
22
c
2j
c
2m
b
i
x c31 c32 c3j c3m i
b
n
x c
41
c
42
c
4j
c
4m n
b
=
=
+ =
+ =
( ) < <
( ) <
= =
=
=
=
=
=
=
=
=
DMC 1752
108 ANNA UNIVERSITY CHENNAI
NOTES
CHAPTER 2
MIXED INTEGER PROGRAMMING
2.1 MIXED INTEGER PROGRAMMING
Introduction
Mixed Integer Programming
2.2 Generation of Gomory Constraints
In the previous chapter we have discussed the procedur for solving integer linear
programming in which all the decision variables are re ricted to take only integer values.
In a Mixed Integer Programming (MIP) model, some of th variables are real valued and
some are integer valued. When the objective function and constraints for a MIP are all
linear, then it is a Mixed Integer Linear Program (MILP). Although Mixed Integer Nonlinear
Programs (MINLP) also exists, in this chapter we will dealing with MILP only.
In mixed integer programming (MIP), only some of the d cision and slack variables
are restricted to take integer values. Gomory cutting ne method is used popularly to
solve MIP and the solution procedure is similar in many aspects to that of all-integer
programming. The first step is to solve the MIP problem as an ordinary LP problem
neglecting the integer restrictions. The procedure ends if the values of the basic variables
which are constrained to take only integer values happen to be integers in this optimal
solution. If not, a Gomory constraint is developed for the basic variable with integer restriction
and has largest fractional value which is explained below. The rest of the procedure is
same as that of all-integer programming.
Let be the basic variable which has integer restricti n and also has largest fractional
value in the optimal solution of ordinary LP problem. hen from the equation of table,
m
1 j
j ij i i
y c b x
As explained in all-integer programming, express as an integer value plus a fractional
part.
i i i
b b .(1)
ij
c Can be expressed as
ij ij ij
c c c
i
th
=
=
+ =
+
+ =
RESOURCE MANAGEMENT TECHNIQUES
109 ANNA UNIVERSITY CHENNAI
NOTES
Case I
Case II
Where
0 c if c
0 c if 0
c
0 c if 0
0 c if c
c
ij ij
ij
ij
ij
ij ij
ij
Therefore,
i i i j
m
1 j
ij ij
x b y c c
Since
i
x is restricted to be an integer
i
b , is also an integer and 1 0
i
, the value of
i i i
x b can be
0
or <0.
:
i i i
x b 0
For
i
x to be an integer, ,.... 2 or 1 or x b
i i i i i i
Therefore,
i j
m
1 j
ij ij
y c c
Finally it takes the form
i j
m
1 j
ij
y c
:
i i i
x b <0
For to be an integer,
,.... 3 or 2 or 1 x b
i i i i i i
Therefore,
1 y c c
i j
m
1 j
ij ij
<
<
+
( ) ( ) + = +
=
+
< <
( ) +
( ) +
( ) + + = +
( ) +
=
+
=
+
( ) +
( ) + + + = +
( ) +
=
+
DMC 1752
110 ANNA UNIVERSITY CHENNAI
NOTES
2.3 EXAMPLE
Example of Cutting plane method for MILP
Step 1
Finally it takes the form
1 y c
i j
m
1 j
ij
Dividing this inequality by 1
i
and multiplying with, we have
i j
m
1 j
ij
i
i
y c
1
Considering both cases I and II, the final form of the inequality becomes (since one of the
inequalities should be satisfied)
i j
m
1 j
ij
i
i
j
m
1 j
ij
y c
1
y c
Then, the Gomory constraint after introducing a slack ariable is
i j
m
1 j
ij
i
i
j
m
1 j
ij i
y c
1
y c s
Generate the Gomory constraint for the variables havin integer restrictions. Insert
this constraint as the last row of the final table of problem and solve this using dual
simplex method. MIP techniques are useful for solving ure-binary problems and any
combination of real, integer and binary problems.
Consider the example previously discussed with integer constraint only on.The
standard form for the problem is
0 y , y , x , x
45 y x 9 x 3
6 y x x 2 to subject
x x 3 Z Maximize
2 1 2 1
2 2 1
1 2 1
2 1
2
x should be an integer
: Solve the problem as an ordinary LP problem. The fin tableau is showing the
optimal solutions which is shown below.
( )
+
=
=
+
=
=
+
= + +
= +
+ =
RESOURCE MANAGEMENT TECHNIQUES
111 ANNA UNIVERSITY CHENNAI
NOTES
Table 9
Step 2
Variables Iteration Basis Z
Optimum value of Z is
7
123
and corresponding values of basic variables are
7
5
4
7
33
x
1 ,
7
3
3
7
24
x
2 and those of non-basic variables are all zero
(i.e. 0 y y
2 1
). This is not satisfying the constraint of
2
x to be an integer..
: Generate Gomory constraint.
From the row corresponding to in the last table, we can write,
1 2 2
y
21
2
y
7
1
7
24
x
Here
21
2
c ,
7
1
c ,
7
24
b
22 21 2
Since
2 2 2
b b as per Eqn (), the value of 3 b
2
and
7
3
2
.
Similarly
21 21 21
c c c and
22 22 22
c c c .
Therefore,
7
1
c , 0 c
21 21
since is negative
0 c ,
21
2
c
22 22
Since it is positive. The Gomory constraint can be written as
i j
m
1 j
ij
i
i
j
m
1 j
ij i
y c
1
y c s
7
3
y
28
3
y
21
2
s ., e . i
1 2 2
Insert this constraint as the last row of the final tableau.
1 2 1 2
Z 1 0 0
7
8
21
5
7
123 --
1
0 1 0
14
6
21
1
7
33 --
3
2
0 0 1
7
1
21
2
7
24 --
= = = =
= =
+ =
= = =
+ = =
=
+
+ =
+
+ =
= =
+
= =
+
=
=
+
=
x x y y
r
b
rs
r
c
b
x
x
DMC 1752
112 ANNA UNIVERSITY CHENNAI
NOTES
Table 10
Step 3
Table 11
Variables
Iteration Basis Z
: Solve using dual simplex method
Variables
Iteration Basis Z
1 2 1 2 2
Z 1 0 0
7
8
21
5
0
7
123
1
0 1 0
14
6
21
1
0
7
33
2
0 0 1
7
1
21
2
0
7
24
2
0 0 0
28
3
21
2
1
7
3
1 2 1 2 2
Z 1 0 0
7
8
21
5
0
7
123
1
0 1 0
14
6
21
1
0
7
33
2
0 0 1
7
1
21
2
0
7
24
4
2
0 0 0
28
3
21
2
1
7
3
Ratio -- --
3
32
2.5 --
r
b
x x y y s
x
x
s
r
b
x x y y s
x
x
s
RESOURCE MANAGEMENT TECHNIQUES
113 ANNA UNIVERSITY CHENNAI
NOTES
Table 12
Variables
Iteration Basis Z
Optimum value of Z from the present tableau is
2
33
as shown above. Corresponding
values of basic variables are 5 . 4 x
1
, 3 x
2
, 5 . 4 y
2
and those of non-basic variables
are all zero (i.e., 0 s y
2 1
). This solution is satisfying all the constraints.
1 2 1 2 2
Z 1 0 0
8
7
0 1
2
33
1
0 1 0
8
3
0 1
2
9
2
0 0 1
4
1
0 1 3
4
2
0 0 0
8
9
1
2
21
2
9
= = =
= =
r
b
x x y y s
x
x
y
DMC 1752
114 ANNA UNIVERSITY CHENNAI
NOTES
CHAPTER 3
BRANCH AND BOUND TECHNIQUE
3.1 BRANCH AND BOUND
Branch and Bound
branching
bounding
pruning
3.1.1 Effective subdivision
DMC 1752
116 ANNA UNIVERSITY CHENNAI
NOTES
Branch and Bound
3.1.3 The General Branch and Bound Algorithm
Definitions:
applicable when the cost function used is noisy or is he result of statistical estimates and so
is not known precisely but rather only known to lie within a range of values with a specific
probability. An example of its application here is in iology when performing sadistic analysis
to evaluate evolutionary relationships between organis where the data sets are often
impractically large without heuristics.
For this reason, branch-and-bound techniques are often used in game tree search
algorithms most notably through the use of alpha-beta uning.
Although a number of algorithms have been proposed for the integer linear programming
problem, the technique is used in almost all of the software. This
technique has proven to be reasonably efficient on pra ical problems, and it has the added
advantage that it solves continuous linear programs as sub problems, that is, linear
programming problems without integer restrictions.
Branch and bound is a systematic method for solving op imization problems
B&B is a general optimization technique that applies where the greedy method
and dynamic programming fail.
However, it is much slower. Indeed, it often leads to ponential time complexities
in the worst case.
On the other hand, if applied carefully, it can lead t algorithms that run reasonably
fast on average.
The general idea of B&B is a BFS-like search for the optimal solution, but not all
nodes get expanded (i.e., their children generated). Rather, a carefully selected
criterion determines which node to expand and when, and another criterion tells
the algorithm when an optimal solution has been found.
Each solution is assumed to be expressible as an array X [1: n] (as was seen in
Backtracking).
A predictor, called an approximate cost function CC, is assumed to have been
defined.
A live node is a node that has not been expanded
A dead node is a node that has been expanded
The expanded node (or E-node for short) is the live no with the best CC value.
The general B&B algorithm is as follows:
Procedure B&B ()
begin
E: node pointer;
branch-and-bound
branching
tree search
RESOURCE MANAGEMENT TECHNIQUES
119 ANNA UNIVERSITY CHENNAI
NOTES
We now have two new LP relaxations to solve. If we do his we get:
P1 - original LP relaxation plus x
2
=0, solution x
1
=0.5, x
3
=1, x
2
=x
4
=0 of value 0.6
P2 - original LP relaxation plus x
2
=1, solution x
2
=1, x
3
=0.67, x
1
=x
4
=0 of value
0.63
This can be represented diagrammatically as below.
To find the optimal integer solution we just repeat th process, choosing one of these
two problems, choosing one fractional variable and gen rating two new problems to solve.
Choosing problem P1 we branch on x
1
to get our list of LP relaxations as:
P3 - original LP relaxation plus x
2
=0 (P1) plus x
1
=0, solution x
3
=x
4
=1, x
1
=x
2
=0 of
value 0.6
P4 - original LP relaxation plus x
2
=0 (P1) plus x
1
=1, solution x
1
=1, x
3
=0.67,
x
2
=x
4
=0 of value 0.53
P2 - original LP relaxation plus x
2
=1, solution x
2
=1, x
3
=0.67, x
1
=x
4
=0 of value
0.63
This can again be represented diagrammatically as belo .
Initial LP relaxation value 0.65
X2 fractional
X2 = 1
value 0.63
X3 fractional
P2
Value 0.6
X1 fractional
X1 =1
X2 =0
P1
X1=0
P3
Value 0.6
integer feasible
Value 0.53
P4
Initial LP relaxation value 0.65
X2 fractional
X2 =1
P2
P1 Value 0.63
X3 fractional
X1 fractional
value 0.6
X2 = O
DMC 1752
120 ANNA UNIVERSITY CHENNAI
NOTES
At this stage we have identified an integer feasible solution of value 0.6 at P3. There
are no fractional variables so no branching is necessary and P3 can be dropped from our
list of LP relaxations.
Hence we now have new information about our optimal (b st) integer solution, namely
that it lies between 0.6 and 0.65 (inclusive).
Consider P4, it has value 0.53 and has a fractional variable (x
3
). However if we were
to branch on x
3
any objective function solution values we get after b nching can never be
better (higher) than 0.53. As we already have an integ feasible solution of value 0.6 P4
can be dropped from our list of LP relaxations since b nching from it could never find an
improved feasible solution. This is known as - using a known feasible solution
to identify that some relaxations are not of any inter t and can be discarded.
Hence we are just left with:
P2 - original LP relaxation plus x
2
=1, solution x
2
=1, x
3
=0.67, x
1
=x
4
=0 of value
0.63
Branching on x
3
we get
P5 - original LP relaxation plus x
2
=1 (P2) plus x
3
=0, solution x
1
=x
2
=1, x
3
=x
4
=0 of
value 0.5
P6 - original LP relaxation plus x
2
=1 (P2) plus x
3
=1, problem infeasible
Neither of P5 or P6 lead to further branching so we are done, we have discovered
the optimal integer solution of value 0.6 correspondin to x
3
=x
4
=1, x
1
=x
2
=0.
The entire process we have gone through to discover this optimal solution (and to
prove that it is optimal) is shown graphically below.
Initial LP relaxation value 0.65
X2 fractional
X2 =1
X2 =0
P1
Value 0.6
X1 fractional
X1 = 1 X3 = 0
P2
Value 0.63
X3 fractional
X3 = 1
P6
infeasible value 0.5
P5 P4
Value 0.53
Value 0.6
integer feasible
X1=0
P3
bounding
DMC 1752
122 ANNA UNIVERSITY CHENNAI
NOTES
Definition of the cost function C:
Theorem:
Proof:
2 4 5
2 7 10
5 3 7
2 4 5
2 7 10
5 3 7
2 4 5
2 7 10
5 3 7
Termination criterion: When the best node chosen for expansion turn out to be a final
leaf (i.e., at level n) when the algorithm terminates nd that node corresponds to the optimal
solution. The proof of optimality will be presented later on.
What could that predictor be?
In the case of minimization problem, one candidate predictor of any node is the
cost so far. That is, each node corresponds to (partial) solution (from the root to
that node). The cost-so-far predictor is the cost of t partial solution.
Apply this preliminary algorithm on the above specific instance of the job assignment
problem
A better predictor for the job assignment problem is:
(Cost so far) + (sum of the minimums of the remaining ws)
Apply B&B with the new predictor to the same instance the job assignment
problem
A yet another predictor is cost so far + sum
n
i=k+1
p
i
Where p
i
is the minimum value in row i of the cost matrix A, such that p is not in the
column of any of the terms chosen in the partial solution so far.
Apply B&B with the last predictor to the same instance of the job assignment
problem
Criteria for the Choice of Approximate Cost Functions
For every node X in the solution tree, the cost
function C(X) is the cost of the best solution that go through node X.
In the case of minimization problems, if CC(X) <= C(X) for every
node X, and if CC(X)=C(X) for every final leaf node X, then the first expanding
node (best-CC node) that happens to be a final leaf corresponds to an optimal
solution.
Let E be the E-node that happens to be a final leaf.
Need to prove that C (E) <= C(X) for any live node X.
C(E)=CC(E) because E is a final leaf
CC(E) <= CC(X) for any live node X, because E is the e ing node, that is,
the minimum-CC node
CC(X) <= C(X) by assumption.
Therefore, C (E) =CC (E) <=CC(X) <=C(X), leading to C <=C(X).
Therefore, the criteria for the approximate cost function CC for minimization
problems are:
CC(X) <= C(X) for all live nodes X
CC(X) =C(X) for all final leaves.
The criteria for the approximate cost function CC for ximization problems are:
CC(X) >= C(X) for all live nodes X
CC(X) =C(X) for all final leaves.
Because of those criteria, CC is called an underestimate of C (in the case of
minimization), and an overestimate of C (in the case of maximization)
The closer CC is to C, the faster is the algorithm in reaching an optimal solution.
We need to define the full record of a node
We need to fully implement the Expand procedure
Every node corresponds to something like X[i] =j, whic signifies that the job X[i]
assigned to person i is j.
Every node must store its CC value.
Each node must point to its parent so that when an opt l leaf is generated, the
path from that leaf to the root can be traced and printed out as the optimal solution.
Therefore, a node record structure should look like:
Record node
Begin
Parent: node pointer;
I: integer; person I
J: integer; Job J is assigned to person I
CC: real;
End
DMC 1752
124 ANNA UNIVERSITY CHENNAI
NOTES
DMC 1752
126 ANNA UNIVERSITY CHENNAI
NOTES
CPM Analysis Steps
1.2 EXAMPLES
1.2.1 Example 1: Activities, precedence, and times
Step 1: List the activities
For example:
Step 2: Draw the diagram
Activity Destination Required Predecessor Duration
The steps for doing CPM analysis will be illustrated b two examples. It is recommend
to work through these examples.
This first example involves activities, their precedence (which activities come before
other activities), and the time the activities take. T objective is to identify the critical path
and figure out how much time the whole project will take.
CPM analysis starts with a table showing each activity for a project. For each activity,
identify the other activities must be done before it starts, and how long the activity takes.
Draw a network diagram of the project that shows which activities follow the other
ones. This can be tricky. The analysis method requires an activity-on-arc (AOA) diagram.
An AOA diagram has numbered nodes that represent stages of project completion as
shown in the given figure. Connect the nodes with arrows or arcs that represent the
activities that are listed in the above table.
A Product design (None) 5 months
B Market research (None) 1
C Production analysis A 2
D Product model A 3
E Sales brochure A 2
F Cost analysis C 3
G Product testing D 4
H Sales training B, E 2
I Pricing H 1
J Project report F, G, I 1
RESOURCE MANAGEMENT TECHNIQUES
127 ANNA UNIVERSITY CHENNAI
NOTES
Example 1 Step 3: Set up the CPM spreadsheet
Some conventions about how to draw these diagrams:
All activities with no predecessor come off from node 1.
All activities with no successor points to the last no , which has to have a highest
node number.
In this example, A and B are the two activities that have no predecessor. They are
represented as arrows leading away from node 1.J is th one activity that has no successor,
in this example. It therefore points to the last node, which is node 8. If there were more
than one activity with no successor, all of those activities arrows point to the highest
number node.
The trickiest part for building the above diagram was guring what to do with activity
H. First draw an arrow for activity B coming off node and going to node 3. Then draw
an arrow for activity E coming off node 2 and going to node 6. Since H requires both B
and E, erase the first E arrow and redraw it so it poi to the same node 3 that B did. H
then comes off from node 3 and goes to node 6.
There are specialized commercial programs for doing CPM analysis. Rather than
purchase and learn one of those. It is recommended to se the spreadsheet knowledge.
Start up a new blank spreadsheet. In a blank spreadsheet, type the word Activities in
cell A1. In row 2, type the names of the activities, or their letters.
D
1
2
3
4
5
6
7 8
A
B
E
G
F
H
I
J
DMC 1752
128 ANNA UNIVERSITY CHENNAI
NOTES
Step 4: Use Path find to get the paths
In row 3, type Nodes. In row 4, type in each activitys start node where the tail of its
arrow is. Below that, in row 5, type each activitys end node where the head of its
arrow is. Do this carefully. Mistakes here mess up everything that follows.
To the right, in K4 and K5, type the words Start and End to label those rows.
In cell A6, type Times. In row 7, type the time of each activity takes. Then, select the
range of cells containing the node numbers
And copy it to the clipboard.
Path find is a computer program that helps to find and enter into the spreadsheet all of
the possible paths through the diagram along the arrows from the first node to the last. This
diagram shows the four possible paths in this example.
RESOURCE MANAGEMENT TECHNIQUES
129 ANNA UNIVERSITY CHENNAI
NOTES
Step 5: Paste the path information into the spreadsheet
The four paths are A D G J, A C F J, A E H I J, and B J. To code them in the
spreadsheet with a matrix of 0s and 1s. Rather than oing it manually, use path find to do
it.
To use Path find, start up your Internet connection and your browser.
Loading the html file into the browser starts Path fin , which is a Java applet that runs
inside the browser. When Path find is loaded:
Click in Path finds upper text area.
Paste the range that is copied from the spreadsheet in that upper text area. Click
on Path finds button. Path finds lower text area wil give you a block of numbers.
Copy the highlighted numbers to the clipboard for past ng later into the spreadsheet.
Move the cell selector to cell A8. Type Paths in tha cell. Then move the cell selector
to A9, as shown here:
DMC 1752
130 ANNA UNIVERSITY CHENNAI
NOTES
Example 1 Step 6: Calculate the paths times
Paste to that cell, to see this:
The pasted cells are all 0s and 1s. Each row represents a path. The 1s indicate
which activities are in that particular path. For example, row 9 (cells A9:J9) has 1s under
activities A, C, F, and J. This says that this path includes activities A, C, F, and J. This
corresponds to the path through the middle of the diagram that goes:
1 A 2 C 7 J 8
The diagram above shows four paths from node 1 to node 8.Path find produces four
rows of 0s and 1s, one row for each path.
Move the cell selector to K9. Type
in that cell.
=SUMPRODUCT (A9:J9, $A$7:$J$7)
RESOURCE MANAGEMENT TECHNIQUES
131 ANNA UNIVERSITY CHENNAI
NOTES
Step 7: Identify the critical path
This formula multiplies each entry in row 9 by the corresponding entry in row 7.
Because the entries in row 9 are all 0s and 1s, this has the effect of selecting the times
from row 7 that go with the activities represented in ow 7, and adding all those times.
When entering the formula, the number 11 should appear in K9. Thats the time it
would take to complete activities A, C, F, and J. (A takes 5 months, C takes 2, F takes 3,
and J takes 1, for a total of 11).
To fill in the other paths times, copy cell K9, then ste it to K10:K12. The $ signs
in the formula see to it that each paths 1s are mult plied by the corresponding numbers in
row 7.
The critical path is the path that takes the longest. this example, the critical path is
the one in row 10, which takes 13 months. The project therefore take 13 months, if
everything is done on schedule with no delays. The tim a project takes is equal to the time
of its critical path.
The 1s in row 10 tell that the critical path is 1 A 2 D 4 G 7 J 8. If any of
those activities is late, the project will be late. Ot r paths are not critical because they can
waste some time without slowing the project. For example, activity C, in row 9s path, can
take up to two extra weeks and not hold up the project.
To make it easier to see what activities are in each path, go to cell A14. Type
there. The letter A should appear in cell A14.
This =if (A9=1, a$2, function works this way: Inside the parentheses are three
expressions separated by commas. The first expression =1) is something that can be
either true or false. If the expression is true, the s nd expression (A$2) is shown in the
cell. Otherwise, the third expression () is shown in the cell.
=if
(A9=1,A$2,)
)
DMC 1752
132 ANNA UNIVERSITY CHENNAI
NOTES
In A14, the expression A9=1 is true, so the cell shows what is in A2, which is the
letter A. If A9 had not contained a 1, then A14 woul have shown a blank. Copy A14 to
the clipboard. Then, starting in A14, select a range of cells that goes over to column J and
down four rows. The selected range should be the same e as the space that the paths
1s and 0s take up.
It shows which activities are in each path. If the results do not look like the above,
make sure that there is one $ in the formula, and that its in front of the 2 and not in front of
the A.
Go to cell J13 and type Max. Then go to cell K13. Type to
display the longest path time.
=MAX (K9:K12)
RESOURCE MANAGEMENT TECHNIQUES
133 ANNA UNIVERSITY CHENNAI
NOTES
Move to cell K14 and type =IF (K9=K$13,Critical,) here.
This will put the word Critical next to a path whose time equals the maximum of all
the path times. Otherwise, it will put in a blank, as does here, because the 11 in K9 does
not equal the 13 in K13.
Copy K14 to the clipboard. (It will seem strange to copy what appears to be an
empty cell, but do it anyway.) Select cells K14 to K17, and paste.
DMC 1752
134 ANNA UNIVERSITY CHENNAI
NOTES
4.2.2 Example 2: Costs and Crash Costs
Step 1: List the activities
Step 2: Draw the diagram
Activity Required
Predecessor
Normal
Time
Normal
Cost
Crash
Time
Crash
Cost
This second example incorporates costs and the possibility of spending money to
speed up the project. The main objective is to determi how quickly to complete each
activity, and thus how long the project as a whole should take. The presumption is that
there is some reward for getting finished sooner. In o er to decide whether the reward is
worth earning, and if so what is the best way to earn it. This example also shows how to
use a dummy activity. A dummy activity is an activity at you add to the original activities
list. A dummy activity takes no time, and it has no cost.
To start the network diagram, A, B, and C are the thre activities with no predecessor.
They all come off from node 1. A can go from node 1 to node 2. B can go from node 1 to
node 3. C also starts at node 1. D requires A, so D starts at node 2.
Now for activity E. Activity E requires a special tric The problem is where E should
start. E requires A and B. A ends at node 2 and B ends at node 3. E is not allowed to start
from both nodes 2 and 3. Activities can have only one tart node and only one end node.
What do we do about E? First choice is to consider connecting both A and B to node
2, but that would mess up Activity D. If both A and B ere to run from node 1 to node 2
A (None) 3 weeks $3000 2 weeks $5000
B (None) 4 $4000 2 $6000
C (None) 5 $5000 3 $8000
D A 8 $5000 6 $6000
E A,B 3 $3000 2 $4000
F C 5 $4000 3 $8000
2
3
4
1
A
B
C
D
RESOURCE MANAGEMENT TECHNIQUES
135 ANNA UNIVERSITY CHENNAI
NOTES
Step 3: Set up the CPM spreadsheet
and D came off from node 2, that would be saying that requires B as well as A. D is
supposed to require A, not also B.
Here is the solution:
The solution is to add a dummy activity that runs from node 2 to node 3, as shown in
the diagram. Then start E at node 3.
If E starts at node 3, it means that E requires B and the dummy activity, the two
activities that come in to node 3. The dummy activity, because it starts at node 2, requires
A. This makes E require B and A. The D starts at node so D only requires A. All the
requirements are satisfied! Dummy activities add nothing to the time or the cost. Their
purpose is to allow you to represent complex relations ps among activities.
Consider the CPM spreadsheet has 7 activities. Thats six lettered activities plus
the one dummy activity.
These instructions will create the spreadsheet from sc tch. Adapting the spreadsheet
from example 1 is possible, but tricky, because example 2 has fewer columns and more
rows than example 1.
To start with a blank spreadsheet, move the cell selector to A1 and type Activities.
In row 2, type the activities, letters or names. Put the Dummy at the right end of row 2, for
two reasons:
The other activities names matches will their column etters.
It will be easier to fill in the Solver Parameters box when we get to that stage.
In cell A3, type Nodes. In row 4, type the starting f the activities. In row 5, type
the ending of the activities.
2
3
4
5 1
A
B
C
F
D
Dummy
E
DMC 1752
136 ANNA UNIVERSITY CHENNAI
NOTES
Type Times in cell A6. In row 7, type each activitie normal time. The dummy time
is 0. In row 8, type each activities crash time. The d crash time is 0.
Copy row 7 and paste it into row 9. Row 9 will be the iable cells, while doing the
optimization later. Be sure to copy the numbers themselves from row 7 to row 9.
Label each of the Times rows by typing Normal in H7, Crash in H8, and Actual
in H9.
To do the optimization, well set a maximum time for t e project and tell the spreadsheet
to find the combination of numbers in row 9 that compl es the project within that time for
the lowest possible cost.
To do that, it needs the costs. In cell A10, type Cos . In row 11, put each activities
normal cost. In H11, type Normal. In row 12, put each activities crash cost. In H12,
type Crash. In H13, type Actual. Type 0 in G13 for the Dummy actual cost.
RESOURCE MANAGEMENT TECHNIQUES
137 ANNA UNIVERSITY CHENNAI
NOTES
The diagram above also shows a formula to put in A13.
Row 13 will have formulas to calculate the actual cost for each activity. Each activities
actual cost depends on how much it speed up or crashed. Assume a linear relationship
between speed-up and cost. For example if an activity can be shortened by 2 weeks at
an added cost of $2000, assume that it can be shortened by 1 week for an added cost of
$1000.
The formula to implement is at cell A13, A13 type =A1 (A7-A9)/ (A7-A8)*(A12-
A11)
The logic of the formula:
(A7-A9) is the difference between the normal time and he actual time for activity
A. This difference is how much time is reduced by speeding up activity A.
(A7-A8) is the difference between the normal time and he crash time. This is the
most time that could save by speeding up activity A.
(A7-A9)/ (A7-A8) is how much time actually saved, as a fraction of how much
time that could save, for activity A. In other words, is the proportion of the
possible time savings that are actually used.
(A12-A11) is the difference between the crash cost and the normal cost for activity
A. This difference is how much cost would go up if activity As time is shortened as
much as possible. Multiplying these, to get (A7-A9)/ (A7-A8)*(A12-A11), gives
an additional cost that are incurring by shortening ac vity As time from its normal
time to the actual time chosen. This embodies the linearity assumption that part
way between the normal time and the crash time, the cost will be that same part
way between the normal cost and the crash cost. The fu formula, A11+ (A7-A9)/
(A7-A8)*(A12-A11), adds that additional cost to A11, the cost of doing the activity
in normal time. This gives the cost of doing activity in the amount of time in A9.
DMC 1752
138 ANNA UNIVERSITY CHENNAI
NOTES
Step 4: Use Path finds to get the paths
Step 5: Paste the path information into your spreadsheet
Dont paste the formula to cell G13, because that would give a division-by-zero
error. Similarly, if any of the other activities canno be speed up (the crash time equals the
normal time), put the normal cost number in the cell i row 13, not the formula.
Once that formula is in, copy cell A13 to the clipboard. Select cells A13:F13, and
paste.
Right now, it may look like the formula isnt doing much, because the Actual costs
match the Normal costs. This is because the Actual time matches the Normal time. It will
vary, if the project is shortened.
Now, select the range of node numbers, being sure to i ude the dummy activitys
node numbers.
Copy this range to the clipboard.
Go to and paste in the node numbers that was just copied. Follow Path finds
instructions for copying its reply.
Go back to the spreadsheet. In cell A14, type Paths. Then move the cell selector to
A15, as shown here:
RESOURCE MANAGEMENT TECHNIQUES
139 ANNA UNIVERSITY CHENNAI
NOTES
Paste to that cell, it will produce the below results.
As with the first example, each row represents a path. The 1s indicate which activities
are in that particular path. For example, row 15 has 1s under activities A and D. This
represents the path at the top of the diagram. There are four
possible paths from node 1 to node 5, so it have four ows of 0s and 1s.
1 -A-> 2 -D-> 5
DMC 1752
140 ANNA UNIVERSITY CHENNAI
NOTES
Step 6: Calculate the path times
Step 7: Identify the critical path
In cell H15, put .
Copy that cell and paste it to H15:H18.
It shows how long each path takes.
The critical path is in row 15, 1 -A-> 2 -D-> 5. Its path with the longest time.
To make it easier to see which activities are in each go to cell A20 and type
=if(A15=1,A$2,) (Notice that the $ sign is before th 2, before the A.) This should
put an A in A20.
Copy cell A20 to the clipboard. Select the range A20:G23 and then paste it.
It produces four rows showing the letters of the activ es that are in each path.
=SUMPRODUCT (A15:G15, $A$9:$G$9)
not
RESOURCE MANAGEMENT TECHNIQUES
141 ANNA UNIVERSITY CHENNAI
NOTES
Go back to cell G19 and type Max. Go to cell H19 and type =max(H15:H18).
This shows how long the slowest path takes.
Go down to cell H20. Put in =IF (H15=H$19,Critical,). In this example, Critical
appears in cell H20, because this first path is the critical path.
Copy cell H20. Highlight H20:H23 and then paste it.
Sure enough, the first path with activities A and D, i the only one labeled Critical.
DMC 1752
142 ANNA UNIVERSITY CHENNAI
NOTES
Step 8: Total cost formula
Go up to cell E14 and type Total actual cost: In cell H14, add up the actual costs of
all of the activities. The formula is =SUM (A13:G13)
RESOURCE MANAGEMENT TECHNIQUES
143 ANNA UNIVERSITY CHENNAI
NOTES
Step 9: Fill in the optimizer form
Upon completing the formula, if it uses all normal tim for all activities, the total cost
is $24,000.
Crash analysis is linear programming in disguise. To p form crash analysis, use the
Solver tool. From s menu, select Tools, then Solver.
Fill in the Solver Parameters box as shown here.
The Target Cell is H14, the total cost.
Click on Min. to find the least-cost way to speed up the project.
The Changing Cells are the Actual times, in A9:G9.
The constraints, will be added by clicking the Add but n.
A9:G9 <= A7:G7 All the Actual times must be less than equal to the Normal
times. Assume that, dont save any money by going slower than the Normal time.
A9:G9 >= A8:G8 All the Actual times must be greater than or equal to the crash
times. The crash times are, by definition, the fastest possible times for each activity.
H15:H18 <= 10 the slowest path can take no more than 1 weeks. 10 is chosen
because its one less than 11, the normal completion t me. Later, by changing this
to 9, 8, etc., to see what happens while trying to finish the project in shorter and
shorter times.
For using Excel 2000 or earlier, click on Options.
Click the checkbox for assuming a linear model.
Excel
DMC 1752
144 ANNA UNIVERSITY CHENNAI
NOTES
Step 10: Solve
Click on OK in the Solver Options dialog box. Click on Solve in the Solver Parameters
dialog box.
If an error message appears, bring back up the Solver rameters dialog box.
Make sure that Min is checked. A mistake here can caus an unbounded solution
error.
Verify that the target cell and the changing cells are correct.
Verify that all the constraints are correct, with greater-than and less-than going in
the right directions. Mistakes here can cause unbound solution, non-linear
and no feasible solution errors.
If it shows a message that there is no feasible solution, try changing the Assume
Linear Model option. That is, click Solvers Options bu n, then check Assume
Linear Model if its unchecked, or uncheck it if its cked.
If you still get the no-feasible-solution message, change the Solver Parameters as
shown here to exclude the dummy activity from the Chan ng Cells and the Constraints.
DMC 1752
150 ANNA UNIVERSITY CHENNAI
NOTES
Figure 1
Code Of Task Duration(Weeks) Prerequisite tasks
Let S be the set of all tasks and consider the partial order relation R defined on S as
follows: for all tasks x and y in S,
xRy x = y or x precedes y.
The minimum time required to finish this job is calcul ed using Project Evaluation and
Review Technique (PERT). The PERT diagram of the project is shown in the figure 1.
In this representation, the tasks are the vertices of e graph. The length of each task
is the duration of the corresponding task. The start a d finish of a task are two stages of the
project. Define an initial stage as start and a final tage as finish and a certain number of
intermediate stages. Each stage is defined by tasks already carried out.
In the beginning milestone of the project is start stage. The start followed by task A
which is carried out in 7 weeks. After finishing stage A, it leads into two options. The task
B and task D can be started simultaneously. Task B takes 3 weeks to finish and task D
takes 8 weeks to finish the job. Task B is immediately followed by task C, which takes one
week to carry out. The minimum time required to start sk C is the total time required to
finish task B and A which is 10 weeks. Task C is followed by task E. To start task E,the
A Masonry 7 -
B Carpentry for roof 3 A
C Roof 1 B
D Sanitary and electrical installations 8 A
E Front 2 D, C
F Windows 1 D, C
G Garden 1 D, C
H Ceiling 3 F
J Painting 2 H
K Moving in 1 E, G, J
RESOURCE MANAGEMENT TECHNIQUES
151 ANNA UNIVERSITY CHENNAI
NOTES
Table 2. below:
Figure 2
Task Earliest Start Time
task C and D should be finished. C is finished in 11 w s, and D is finished in 15 weeks,
so it is very common that,the task E cannot be started before finishing task D which takes
15 weeks to carry out. Same way, the earliest time to rt each task are identified, which
is shown in table 2 below.
The above analysis shows that at least 21 weeks is required to complete the project.
The minimum duration of the project will be the length of the longest path between the
initial stage and the finish stage. This is shown in w h the darker line in the figure 2.
Start (a) 0
A 0
B 7
C 10
D 7
E 15
F 15
G 15
H 16
J 18
K 20
Finish ( ) 21
DMC 1752
152 ANNA UNIVERSITY CHENNAI
NOTES
4.6.2 Example 2
If any work in this path, is delayed then the project ish time is also delayed. That
means delay in performing any of these tasks in the path cause delay in the time required to
finish the project, and for these reason, this path is known as critical path. The tasks
outside the critical path can be delayed by certain amount of time. For example task E is
not on critical path and it is followed by task K. If E is delayed by 3 week than its
earliest start time, then the task K is started as per its earliest start time because K must be
started after finishing J which takes 20 weeks. It makes the task E in 20 weeks by delaying
3 weeks. In the opposition if any delay in work on the critical path, then it delays the time
to complete the project. For example 3 weeks delay in ask J cause 3 weeks delay to start
K, and K start after 3 weeks than its earliest start time and these cause three week delay
to complete the project. Now if task J finished earlier by one week then task K, can also
reached earlier by one week and finish it off. And fin ly the overall project is also finished
one week before.
In order to construct a house, there are many jobs that need to be done at the same
time. Certain parts of the construction must be done b ore others can be started. Nobody
cannot start wiring the house if the walls have not be n put up, and cannot put the walls up
till the foundation had been set. Before the foundation is set, one must choose a good plot
to dig the foundation hole. However, there are certain jobs which can be done
simultaneously. While wiring the outlets, one can have someone to do the heating and air
conditioning ducts or can have the landscaper working the outside layout. The partial
order diagram will allow one to see how long the whole process will take. Below, table
shows each task that needs to be done, and the amount time required for that task. The
amount of time is estimated.
The next table shows, what task precedes each task. This allows to see what tasks
can be done at the same time. If one task does not depend on the other, then those two
tasks can be done at the same time.
1 Find Plot 2 days
2 Excavate land 5 days
3 Dig for foundation 3days
4 Lay concrete foundation 5 days
5 Exterior firework 2 days
6 Exterior electrical 2 days
7 Exterior gas line 5 days
RESOURCE MANAGEMENT TECHNIQUES
153 ANNA UNIVERSITY CHENNAI
NOTES
Task Percent Tasks Time
Partial Order Formula: X R Y <=> X = Y or X precedes Y
The following Hasse diagram from left to right to find the minimum time for the whole
process of constructing the house.
1 0 2 days
2 1 5 days
3 2 3days
4 3 5 days
5 1, 2, 3, 4 2 days
6 1, 2, 3, 4 2 days
7 1, 2, 3, 4 5 days
8 4 2 days
9 8 2 days
10 8 2 days
11 8 2 days
12 8 2 days
13 8 2 days
14 10, 11, 12, 13 2 days
15 14 2 days
16 8 2 days
17 15 2 days
18 17 2 days
19 17 2 days
20 19 2 days
21 20 2 days
DMC 1752
154 ANNA UNIVERSITY CHENNAI
NOTES
1.7 EXERCISE
Duration in weeks Likely Optimistic Pessimistic
Partial Order Diagram: Construction of a House
Critical Path Method (CPM): 1, 2, 3,4,8,16,21 which is 35 days
The critical path time can be reduced if done certain asks differently. The time for
landscaping right now is 14 days. But if more workers re used, then the time will be less.
If pre-fabricated materials are used, then it will take less time, because less people are
needed, and less time is used in making the material. so depending on the design of the
house, the time can be reduced or even increased. If less room is needed by the family that
is living there, then it will take less time, then des gning at large size home with many rooms,
and closets inside each room. What can also reduce the time is, experience of the construction
workers. If the workers are new, then they will be a b slower, and making more mistakes
which increases the time for each task.
1. Find the following problem using PERT model:
A) Calculate the expected duration per activity
i) 5+5*10+21/6 = 11
ii) 4+4*6+8/6 = 6
iii) 6+4*14+16/6 = 13
Activity A 10 5 21
Activity B 6 4 8
Activity C 14 6 16
Task1
2 Days
Task 2
5 Days
Task 3
3 Days
Task 4
5 Days
Task 5
2 Days
Task 6
2 Days
Task 7
2 Days
Task 8
5 Days
Task
13
Task
16
Task
12
Task
11
Task
10
Task 9
3 Days
Task
14
Task
15
Task
17
RESOURCE MANAGEMENT TECHNIQUES
155 ANNA UNIVERSITY CHENNAI
NOTES
1.8 NETWORK ANALYSIS: RESOURCE SCHEDULING
1.8.1 Resources and Networks
1.8.2 Project resources
1.8.3 Resource Scheduling Requirements
B) Determine the standard deviation
A 21-5 = 16/6 = 2.67
B 8-4 = 4/6 = 0.67
C 16-6 = 10/6 =1.67
((2.67)2 + (0.67)2 + (1.67)2)0.5 = 3.21
C) Assuming a normal distribution estimate the probabi ty that the project duration is
i) more than A days
ii) less than B days
iii) between C and D days
This section deals with the resources aspects of network analysis, and shows how
resources of men, machines, etc could be scheduled over the project duration to be able
to deal with resource and/or time constraints.
The usefulness of networks is not confined only to the time and cost factors which
have been discussed so far. Considerable assistance in planning and controlling the use of
resources can be given to management by appropriate development of the basic network
techniques.
The resources (men of varying skills, machines of all ypes, the required materials,
finance, and space) used in a project are subject to varying demands and loadings as the
project proceeds. Management need to know what activities and what resources are
critical to the project duration, and if resource limi tions (eg shortage of materials, limited
number of skilled personnel) might delay the project. They also wish to ensure, as far as
possible, constant work rates to eliminate paying overtime at one stage of a project and
having short time working at another stage.
To be able to schedule the resource requirements for a project the following details
are required.
DMC 1752
156 ANNA UNIVERSITY CHENNAI
NOTES
1.8.4 Resources Scheduling Example Using a Gantt chart
PROJECT DATA
ACTIVITY
(DAYS)
PRECEDING
ACTIVITY
DURATION LABOUR
REQUIREMENT
a. The customary activity times, descriptions and sequenc s as previously described.
b. The resource requirements for each activity showing th classification of the resource
and the quantity required.
c. The resources in each classification that are available to the project. If variations
in availability are likely during the project life, th e must also be specified.
d. Any management restrictions that need to be considered eg which activities may
or may not be split or any limitations on labour mobility.
A simple project has the following time and resource d a (for simplicity, only the one
resource of labour is considered, but similar principles would apply to other types of inter-
changeable resources).
Resource constraint - 2 men only available
Critical Path Activity D
Duration 5 Days (Without taking account of the resource constraint).
A - 1 2men
B - 2 1man
C A 1 1 man
D - 5 1 man
E B 1 1 man
F C 1 1 man
0
0 0
1
1 3
3
2 4
2
2 4
4
5 5
A
1
C
1
D
5
F
1
E
1
B
2
RESOURCE MANAGEMENT TECHNIQUES
157 ANNA UNIVERSITY CHENNAI
NOTES
1.8.5 Resource Scheduling Steps
Resource Aggregation Profile Based on ESTs
a. Draw the activity time of a Gantt or Bar Chart based on their ESTs
b. Based on the time bar chart prepares a Resource Aggregation Profile ie total resource
requirements in each time period.
c. Examination of the above profile shows that at times more resources are required than
are available if activities commence at their ESTS. he ESTs/LSTs on the network show
that float is available for activities A, C, F, B and E. Having regard to these floats it is
necessary to smooth out the resource requirements so that the resources required do not
exceed the resource constraint, ie delay the commencement of activities (within their float)
and if this procedure is still not sufficient then del the project as a whole. Carrying out
this procedure results in the following resource profi .
0 1 2 3 4 5
Time scale in days
D
A C F
B E
4
3
2
1
0
5
Time scale in days
0 1 2 3 4
Resource availability
A
C F
B E
D
No. of men
required
DMC 1752
158 ANNA UNIVERSITY CHENNAI
NOTES
Resource Allocation - with 2 man constraint
Note:
Resource Allocation Profile with 5 day constraint
This procedure is sometimes termed RESOURCE LEVELLING.
d. Because of the resource constraint of 2 men it has een necessary to extend the project
duration by 1 day. Assume that management state that original project duration (5
days) must not be extended and they require this to be achieved with the minimum extra
resources. In such cases a similar process of varying activity start times within their float is
carried out, resulting in the following resource profi .
The above profile shows that to achieve the 5 day duration it is necessary to
have 3 men available from day 2 to day 4.
5
Time scale in days
0 1 2 3 4
A
C F B E
D
6
No. of men
required
A
B
D
E
C
F
0 1 2 3 4 5
4
3
2
1
0
No. of men
required
Time scale in days
RESOURCE MANAGEMENT TECHNIQUES
159 ANNA UNIVERSITY CHENNAI
NOTES
1.8.6 Summary
a. To enable resource scheduling to be carried out the resource requirements for
each activity must be specified.
b. In addition the various resources involved (men, machinery etc) must be classified
and the availability and constraints specified.
c. After calculating the critical path in the usual manner a Resource Aggregation
Profile(s) is prepared ie the amount of the resource(s required in each time period
of the project based on the ESTs of each activity.
d. If the resource aggregation indicates that a constraint is being exceeded, and float
is available the resource usage is smoothed i.e. the start of activities is delayed.
DMC 1752
160 ANNA UNIVERSITY CHENNAI
NOTES
RESOURCE MANAGEMENT TECHNIQUES
161 ANNA UNIVERSITY CHENNAI
NOTES
UNIT V
CHAPTER 1
QUEUEING MODELS
1.1 WAITING LINE MODELS
Introduction
Queueing theory
Basic Terminology
Queuing Model:
Waiting lines are the most frequently encountered problems in everyday life. For
example, queue at a cafeteria, library, bank, etc. Common to all of these cases are the
arrivals of objects requiring service and the attendant delays when the service mechanism
is busy. Waiting lines cannot be eliminated completely but suitable techniques can be used
to reduce the waiting time of an object in the system. A long waiting line may result in loss
of customers to an organization. Waiting time can be reduced by providing additional
service facilities, but it may result in an increase i the idle time of the service mechanism.
is based on mathematical theories and deals with the roblems arising
due to flow of customers towards the service facility.
The waiting line models help the management in balanci between the cost associated
with waiting and the cost of providing service. Thus, ueing or waiting line models can
be applied in such situations where, decisions have to be taken to minimize the waiting time
with minimum investment cost.
The present section focuses on the standard vocabulary of Waiting Line Models.
It is a suitable model used to represent a service oriented problem,
where customers arrive randomly to receive some service, where the service time is also a
random variable.
DMC 1752
162 ANNA UNIVERSITY CHENNAI
NOTES
Arrival:
Service Time:
Server:
Queue Discipline:
Poisson Process:
Queue:
Waiting time in queue:
Waiting time in the system:
Queue length:
Average length of line:
Average idle time:
FIFO:
Bulk Arrivals:
1.1.2 Components of Queuing System
1. Input Source:
2. Queue:
3. Service Discipline:
The statistical pattern of the arrival can be indicated through the probability
distribution of the number of the arrivals in an interval.
The time taken by a server to complete service is known as service time.
It is a mechanism through which service is offered.
It is the order in which the members of the queue are fered service.
It is a probabilistic phenomenon where the number of arrivals in an
interval of length t follows a Poisson distribution with parameter ?t, where ? is the rate of
arrival.
A group of items waiting to receive service, including those receiving the service,
is known as queue.
Time spent by a customer in the queue before being served.
It is the total time spent by a customer in the system. It can
be calculated as follows:
Waiting time in the system = Waiting time in the queue + Service time
Number of persons in the system at any time.
The number of customers in the queue per unit of time.
The average time for which the system remains idle.
It is the first in first out queue discipline.
If more than one customer enter the system at an arri al event, it is known
as bulk arrivals.
The input source generates customers for the service mechanism.
The most important characteristic of the input source s its size. It may be either
finite or infinite. Since the calculations are far easier for the infinite case, this
assumption is often made even when the actual size is elatively large. If the population
size is finite, then the analysis of queueing model becomes more involved. The
statistical pattern by which calling units are generated over time must also be
specified. It may be Poisson or Exponential probability distribution.
It is characterized by the maximum permissible number f units that it can
contain. Queues may be infinite or finite.
It refers to the order in which members of the queue are
selected for service. Frequently, the discipline is first come, first served.
RESOURCE MANAGEMENT TECHNIQUES
163 ANNA UNIVERSITY CHENNAI
NOTES
Following are some other disciplines:
4. Service Mechanism:
Unusual Customer/Server Behaviour
Customers Behavior
Balking.
o
o
o
LIFO (Last In First Out)
SIRO (Service In Random Order)
Priority System
A specification of the service mechanism includes a
description of time to complete a service and the number of customers who are
satisfied at each service event. The service mechanism also prescribes the number
and configuration of servers. If there is more than on service facility, the calling
unit may receive service from a sequence of these. At given facility, the unit
enters one of the parallel service channels and is completely serviced by that server.
Most elementary models assume one service facility with either one or a finite
number of servers. The following figure shows the phys cal layout of service facilities.
A customer may not like to join the queue due to long waiting line.
Single Channel, Single Phase
Service
Facility
Single Channel, Multiple
Phase
Service
Facility
Service
Facility
Multiple Channel, Single
Phase
Service
Facility
Service
Facility
Multiple Channel, Multiple Phase
Service
Facility
Service
Facility
Service
Facility
Service
Facility
v
DMC 1752
164 ANNA UNIVERSITY CHENNAI
NOTES
Reneging.
Collusion.
Jockeying.
Servers Behavior
Failure.
Changing service rates.
Batch processing.
What are the underlying assumptions?
1.2 THE M/M/1 ( /FIFO) SYSTEM
v
v
v
v
v
v
v
v
v
v
v
v
v
A customer may leave the queue after waiting for sometime due to
impatience.
Several customers may cooperate and only one of them y stand in
the queue.
When there are a number of queues, a customer may move from one
queue to another in hope of receiving the service quic y.
The service may be interrupted due to failure of a se er (machinery).
A server may speed up or slow down, depending on
the number of customers in the queue. For example, when the queue is long, a
server may speed up in response to the pressure. On the contrary, it may slow
down if the queue is very small.
A server may service several customers simultaneously this
phenomenon is known as batch processing.
The source population has infinite size.
The inter-arrival time has an exponential probability istribution with a mean arrival
rate of one customer arrivals per unit time.
There is no unusual customer behaviour.
The service discipline is FIFO.
The service time has an exponential probability distribution with a mean service
rate of m service completions per unit time.
The mean arrival rate is less than the mean service rate, i.e., l < m.
There is no unusual server behaviour.
It is a queueing model where the arrivals follow a Poi n process, service times are
exponentially distributed and there is only one server In other words, it is a system with
Poisson input, exponential waiting time and Poisson output with single channel.
Queue capacity of the system is infinite with first in first out mode. The first M in the
notation stands for Poisson input, second M for Poisson output, 1 for the number of
servers and a for infinite capacity of the system.
DMC 1752
166 ANNA UNIVERSITY CHENNAI
NOTES
Solution.
1.3.3 Example 3
Solution.
Given
? = 10/hour, = 12/hour
At Bharat petrol pump, customers arrive according to a Poisson process with an
average time of 5 minutes between arrivals. The servic time is exponentially distributed
with mean time = 2 minutes. On the basis of this infor tion, find out
1. What would be the average queue length?
2. What would be the average number of customers in the q euing system?
3. What is the average time spent by a car in the petrol p?
4. What is the average waiting time of a car before receiving petrol?
Probability that the counter is free (W
s
) = 1 -
10
-----
12
=1/6
Average number of customers in the queue (L
q
) =
(10)
2
--------------
12 (12 - 10)
= 25/6
Average inter arrival time =
1
--- =
?
1
---hour =5 minutes
12
?= 12/hour
Average service time =
1
--- =
1
---hour =2minutes
30
= 30/hour
Average queue length, Lq =
(12)
2
-----------
30(30 - 12)
4
= ----
15
RESOURCE MANAGEMENT TECHNIQUES
167 ANNA UNIVERSITY CHENNAI
NOTES
1.3.4 Example 4
Assuming Poisson arrivals and exponential service find
Solution.
Universal Bank is considering opening a drive in window for customer service.
Management estimates that customers will arrive at the rate of 15 per hour. The teller
whom it is considering to staff the window can service customers at the rate of one every
three minutes.
1. Average number in the waiting line.
2. Average number in the system.
3. Average waiting time in line.
4. Average waiting time in the system.
Given
? = 15/hour,
= 3/60 hour or 20/hour
Average number of customers, Ls =
12
-------
30 - 12
2
= ----
3
Average time spent at the petrol pump = ?
1
----------
30 - 12
= 3.33 minutes
Average waiting time of a car before receiving
petrol =
12
------------
30(30 - 12)
= 1.33 minutes
Average number in the waiting line =
(15)
2
-------------
20(20 - 15)
= 2.25 customers
Average number in the system =
15
----------
20 - 15
= 3 customers
Average waiting time in line =
15
------------
20(20 - 15)
= 0.15 hours
Average waiting time in the system =
1
---------
20 - 15
= 0.20 hours
DMC 1752
168 ANNA UNIVERSITY CHENNAI
NOTES
1.3.5 Example 5
Solution.
1.4 THE M/M/1 (N/FIFO) SYSTEM
Chabra Saree Emporium has a single cashier. During the rush hours, customers arrive
at the rate of 10 per hour. The average number of cust ers that can be processed by the
cashier is 12 per hour. On the basis of this information, find the following:
Probability that the cashier is idle
Average number of customers in the queuing system
Average time a customer spends in the system
Average number of customers in the queue
Average time a customer spends in the queue
Given
? = 10/hour, = 12/hour
It is a queuing model where the arrivals follow a Pois process, service times are
exponentially distributed and there is only one server Capacity of the system is limited to
N with first in first out mode.
P
o
=
10
1- ---
12
=1/6
L
s
=
10
--------
12 - 10
= 5 customers
W
s
=
1
----------
12 - 10
= 30 minutes
L
q
=
(10)
2
-------------
12(12 - 10)
=25/6 customers
W
q
=
10
-------------
12(12 - 10)
= 25 minutes
(N+1)?
N+1
-----------
1-?
N + 1
Lq = Ls ?/
Wq =
Lq
----
?
W
s
=
L
s
----
?
?=
30
---------
60 X 24
= 1/48 students per minute
= 1/36 students per minute
? = 36/48 = 0.75 N = 9
P
o
=
1 0.75
-------------
1- (0.75)
9 + 1
= 0.26
L
s
=
0.75
---------
1 - 0.75
-
(9+1)(0.75)
9+1
------------------
1 (0.75)
9 + 1
= 2.40 or 2 students.
v
v
DMC 1752
170 ANNA UNIVERSITY CHENNAI
NOTES
1.6 THE M/M/C (? /FIFO) SYSTEM
1.7 EXAMPLES
1.7.1 Example 1
Solution.
It is a queuing model where the arrivals follow a Pois process, service times are
exponentially distributed and there are C servers.
The Silver Spoon Restaurant has only two waiters. Customers arrive according to a
Poisson process with a mean rate of 10 per hour. The service for each customer is
exponential with mean of 4 minutes. On the basis of th information, find the following:
Probability of waiting for a service.
The expected percentage of idle time for each waiter.
This is an example of M/M/C, where c = 2
? = 10 per hour or 1/6 per minute.
= 1/4 per minute
? = 1/3
1
---- =
P
0
1
0
(?/)
n
--------
n!
+
(?/)
c
-------- X
c!
1
----
1 - ?
Where ? =
?
------
c
L
q
= P
0
X
(?/)
c
------ X
c!
?
--------
(1 - ? )
2
W
q
=
1
--- X
?
L
q
W
s
=
W
q
+
1
----
L
s
= L
q
+
?
----
=
c
n
RESOURCE MANAGEMENT TECHNIQUES
171 ANNA UNIVERSITY CHENNAI
NOTES
1.7.2 Example 2
Solution.
Case I - Treating depositors and withdrawers as unit of M/M/1 system.
Universal Bank has two tellers working on savings acco s. The first teller handles
withdrawals only. The second teller handles deposits o ly. It has been found that the service
times distributions for both deposits and withdrawals exponential with mean service
time 2 minutes per customer. Deposits and withdrawals found to arrive in a Poisson
fashion with mean arrival rate 20 per hour. What would be the effect on the average
waiting time for depositors and withdrawers, if each teller could handle both withdrawers
and depositors?
Given
? = 20 per hour or 1/3 per minute, = 1/2 per minute, c = 2
1
---- =
P
0
1
0
(?/)
n
--------
n!
+
(?/)
c
--------
c!
X
1
----
1 - ?
1
---- =
P
0
1
0
(2/3)
n
--------
n!
+
(2/3)
2
--------
2!
X
1
------
1 - 1/3
1
---- =
P
0
1 +
2
------
3
+
1
---
3
P
0
=
1
---
2
The expected percentage of idle time for each waiter.
1 - ? = 1 - 1/3 = 2/3 = 67%
Average waiting time of an arrival (W
q
) =
?
----------
( - ? )
W
q
=
1/3
---------------- = 4 minutes
1/2 (1/2 - 1/3)
=
c
n
n
DMC 1752
172 ANNA UNIVERSITY CHENNAI
NOTES
Case II - If each teller handles both depositors and
1.8 THE M/E
K
/1 ( /FIFO) SYSTEM
An Erlang Family (E
k
)
Hence, when both tellers handle both withdrawals and d posits, then expected waiting
time is reduced.
It is a queuing model where the arrivals follow a Pois n process, service time follows
an Erlang (k) probability distribution and the number f server is one. Queue capacity of
the system is infinite with first in first out mode. The first M in the notation stands for
Poisson input, k for number of phases, 1 for the number of servers and a for infinite
capacity of the system.
E
k
of a probability distribution is the probability distribution of a random variable,
which can be expressed as the sum ? k independently, identically distributed exponential
variables.
P
0
= 1/2
L
q
= 1/12
W
q
=
1
-----
?
X L
q
W
q
= 1/4 minutes
The expected numbers of customers in the queue, L
q
=
(1+k)
--------
2k
X
?
2
-----------
( - ? )
The expected waiting time before being served, W
q
=
(1+k)
--------
2k
X
?
-----------
( - ? )
The expected time spent in the system, W
s
= W
q
+
1
-----
The expected numbers of customers in the system, L
s
= ? W
s
RESOURCE MANAGEMENT TECHNIQUES
173 ANNA UNIVERSITY CHENNAI
NOTES
1.9 EXAMPLES
1.9.1 Example 1
Solution.
1.9.2 Example 2
The registration of a student at www.universalteacher.com requires three steps to be
completed sequentially. The time taken to perform each step follows an exponential
distribution with mean 30/3 minutes and is independent of each other. Students arrive at
the head office according to a Poisson input process with a mean rate of 25 per hour.
Assuming that there is only one person for registration. On the basis of this information,
find the following:
a. expected waiting time.
b. expected numbers of students in the queue.
This is an M/E
k
/1 system.
Here k = 3, ? = 25 per hour.
Repair of a certain type of machine requires three ste to be completed sequentially.
The time taken to perform each step follows an exponen l distribution with mean 20/3
minutes and is independent of each other. The machine follows a Poisson
process with rate of 1per 2 hours. Assuming that there is only one mechanic, find out
a. The expected idle time of a machine.
b. The average waiting time of a broken down machine in a queue.
c. The expected number of broken down machines in the queue.
d. The average number of machines which are not in operat n.
Service time per phase =
1
---
3
=
30
----
3
Therefore, = 30 per hour.
The expected numbers of students in
the queue, L
q
=
1+3
------
2 x 3
X
(25)
2
--------------
30(30 - 25)
=
2.78 students or 3
students
The expected waiting time before
being served, W
q
=
1+3
------
2 x 3
X
25
-------------
30(30 - 25)
=
1/9 hour or 6.67
minutes
DMC 1752
174 ANNA UNIVERSITY CHENNAI
NOTES
Solution.
As k approaches to infinity, the expressions of L
q
, W
q
, W
s
and L
s
are given by
This is an M/E
k
/1 system.
Here k = 3, ? = 1/2 per hour.
Here k =3, ? =1/2 per hour.
Service time per phase =
1
---
3
=
20
----
3
Therefore, = 3 per hour.
The expected numbers of customers in the
queue, L
q
=
1+3
------
2 X 3
X
(1/2)
2
-----------
3(3 - 1/2)
= 1.33 minutes
The expected waiting time before being
served, W
q
=
1+3
------
2 X 3
X
1/2
---------
3(3 - 1/2)
=
2 minutes
40 seconds
The expected time spent in the
system, W
s
=
2
----
45
+
1
----
3
=
22 minutes
40 seconds
The expected numbers of customers in the
system, L
s
=
1
-----
2
X
17
-----
45
= 11.33 minutes
L
q
=
?
2
-----------
2 ( - ? )
W
q
=
?
------------
2 ( - ? )
W
s
=
1
W
q
+ ---
L
s
=
?
L
q
+ -----
RESOURCE MANAGEMENT TECHNIQUES
175 ANNA UNIVERSITY CHENNAI
NOTES
1.9.3 Example 3
Solution.
Summary
1.10 EXERCISES
At Indira Gandhi airport, it takes exactly 6 minutes to land an aeroplane, once it is
given the signal to land. Although incoming planes hav scheduled arrival times, the wide
variability in arrival times produces an effect which kes the incoming planes appear to
arrive in a Poisson fashion at an average rate of 6 per hour. This produces occasional
stack-ups at the airport, which can be dangerous and c tly. Under these circumstances,
how much time will a pilot expect to spend circling the field waiting to land?
Here, service time is fixed being equal to 6 minutes. service distribution is last
member of Erlang family, i.e., for k = a Mean arrival rate of aeroplane, ? = 6 per hour
Mean landing rate of planes, = (1/6) X 60 = 10 per hour
Waiting lines, like birds, are omnipresent. For instance, queue at a cafeteria, library,
bank, etc. The reason for waiting lines is that in any system, an item cannot be serviced
immediately on arrival and each new arrival has to wai for sometime before it is attended.
Queuing or waiting line models can be applied in such tuations where decisions have to
be taken to minimize the waiting time with minimum inv stment cost.
In this chapter, we discussed the following waiting li models:
The M/M/1 ( /FIFO) system
The M/M/1 (N/FIFO) system
The M/M/C ( /FIFO) system
The M/E
k
/1 ( /FIFO) system
1. In a work station orders arrive according to a Poisson arrival process with arrival rate
?.An order consists of N independent jobs. The distribu n of N is given by
1 k
p ) p 1 ( ) k N ( P
With k = 1,2,. and 0 d p < 1. Each job requires an exponentially distributed
amount of processing time with mean 1/.
i. Derive the distribution of the total processing time o an order.
ii. Determine the distribution of the number of orders in e system.
W
q
=
6
---------------------
2 X 10 X (10 - 6)
= 3/40 hours = 4.5 minutes
= =
DMC 1752
176 ANNA UNIVERSITY CHENNAI
NOTES
2. Consider a work station where jobs arrive according to a Poisson process with arrival
rate ?. The jobs have an exponentially distributed service time with mean 1/. So the
service completion rate (the rate at which jobs depart from the system) is equal to . If
the queue length drops below the threshold QL the serv e completion rate is lowered
to _L. If the queue length reaches Q
H
, where Q
H
QL, the service rate is increased to
H
.(L stands for low, H for high.)Determine the queue le th distribution and the mean
time spent in the system.
3. A repair man fixes broken televisions. The repair time is exponentially distributed with
a mean of 30 minutes. Broken televisions arrive at his repair shop according to a
Poisson stream, on average 10 broken televisions per day (8 hours).
i. What is the fraction of time that the repair man has no work to do?
ii. How many televisions are, on average, at his repair shop?
iii. What is the mean throughput time (waiting time plus re ir time) of a television?
4. In a gas station there is one gas pump. Cars arrive at the gas station according to a
Poisson process. The arrival rate is 20 cars per hour. Cars are served in order of
arrival. The service time (i.e. the time needed for pumping and paying) is exponentially
distributed. The mean service time is 2 minutes.
i. Determine the distribution, mean and variance of the number of cars at the gas
station.
ii. Determine the distribution of the sojourn time and the waiting time.
iii. What is the fraction of cars that has to wait longer than 2 minutes?
An arriving car finding 2 cars at the station immediately leaves.
iv. Determine the distribution, mean and variance of the number of cars at the gas
station.
v. Determine the mean sojourn time and the mean waiting time of all cars (including
the ones that immediately leave the gas station).
5. A gas station has two pumps, one for gas and the other for LPG. For each pump
customers arrive according to a Poisson process. On average 20 customers per hour
for gas and 5 customers for LPG. The service times are exponential. For both pumps
the mean service time is 2 minutes.
i. Determine the distribution of the number of customers t the gas pump, and at the
LPG pump.
ii. Determine the distribution of the total number of customers at the gas station.
6. Consider an M=M=1 queue with two types of customers. T mean service time of all
customers is 5 minutes. The arrival rate of type 1 customers is 4 customers per hour
and for type 2 customers it is 5 customers per hour. T e 1 customers are treated with
priority over type 2 customers.
i. Determine the mean sojourn time of type 1 and 2 custom rs under the preemptive-
resume priority rule.