Statistical & Quantitative Methods Unit I Statistical and Quantitative Techniques
Statistical & Quantitative Methods Unit I Statistical and Quantitative Techniques
2. Matrix Algebra:
Matrix is an orderly arrangement of certain given numbers or symbols in rows
and columns. It is a mathematical device of finding out the results of different
types of algebraic operations on the basis of the relevant matrices.
3. Determinants:
It is a powerful device developed over the matrix algebra. This device is used
for finding out values of different variables connected with a number of
simultaneous equations.
4. Differentiation:
It is a mathematical process of finding out changes in the dependent
variable with reference to a small change in the independent variable.
5. Integration:
Integration is the reverse process of differentiation.
6. Differential Equation:
It is a mathematical equation which involves the differential coefficients of
the dependent variables.
1. Collection of data:
4. Index Numbers:
Index numbers measure the fluctuations in various Phenomena like price,
production etc over a period of time, They are described as economic
barometres.
8. Ratio Analysis:
Ratio analysis is used for analyzing financial statements of any business or
industrial concerns which help to take appropriate decisions.
9. Probability Theory:
Theory of probability provides numerical values of the likely hood of the
occurrence of
events.
C}Programming techniques involve:
1. Linear Programming:
2. Queuing Theory:
3. Game Theory:
Game theory is used to determine the optimum strategy in a competitive
situation.
4. Decision Theory:
This is concerned with making sound decisions under conditions of
certainty, risk and uncertainty.
5. Inventory Theory:
Inventory control techniques are useful in dividing when and how much items
are to be purchase so as to maintain a balance between the cost of holding
and cost of ordering the inventory
Similarly, in case the supply is more than the demand, then dummy source
is created whose demand will be equivalent to the difference between supply
and demand. Again the cost associated with the dummy source will be zero.
Once the demand and supply are equal, the following procedure is followed:
Select the north-west or extreme left corner of the matrix, assign as many
units as possible to cell AD, within the supply and demand constraints. Such
as 20 units are assigned to the first cell, that satisfies the demand of destination
D while the supplyis in surplus.
Now move horizontally and assign 30 units to the cell AE. Since 30 units are
available with the source A, the supply gets fully saturated.
Now move vertically in the matrix and assign 40 units to Cell BE. The supply
of source B also gets fully saturated.
Again move vertically, and assign 25 units to cell CE, the demand of
destination E is fulfilled.
Move horizontally in the matrix and assign 35 units to cell CF, both the
demand and supply of origin and destination gets saturated. Now the total
cost can be computed.
The Total cost can be computed by multiplying the units assigned to each cell
with the concerned transportation cost. Therefore,
Definition: The Least Cost Method is another method used to obtain the
initial feasible solution for the transportation problem. Here, the allocation begins
with the cell which has the minimum cost. The lower cost cells are chosen over
the higher-cost cell with the objective to have the least cost of transportation.
The Least Cost Method is considered to produce more optimal results than
the North-west Corner because it considers the shipping cost while making
the allocation, whereas the North-West corner method only considers the
availability and supply requirement and allocation begin with the extreme left
corner, irrespective of the shipping cost.
The minimum cost in the matrix is Rs 3, but there is a tie in the cell BF, and
CD, now the question arises in which cell we shall allocate. Generally, the
cost where maximum quantity can be assigned should be chosen to obtain the
better initial solution. Therefore, 35 units shall be assigned to the cell BF.
With this, the demand for retailer F gets fulfilled, and only 5 units are left with
the source B.
Again the minimum cost in the matrix is Rs 3. Therefore, 20 units shall be
assigned to the cell CD. With this, the demand of retailer D gets fulfilled. Only
40 units are left with the source C.
The next minimum cost is Rs 4, but however, the demand for F is completed,
we will move to the next minimum cost which is 5. Again, the demand of D
is completed. The next minimum cost is 6, and there is a tie between three
cells. But however, no units can be assigned to the cells BD and CF as the
demand for both the retailers D and F are saturated. So, we shall assign 5
units to Cell BE. With this, the supply of source B gets saturated.
The next minimum cost is 8, assign 50 units to the cell AE. The supply of
source Agets saturated.
The next minimum cost is Rs 9; we shall assign 40 units to the cell CE. With
his both the demand and supply of all the sources and origins gets saturated.
The total cost can be calculated by multiplying the assigned quantity with
theconcerned cost of the cell. Therefore,
Solution:
For the given cost matrix,
Total supply = 50 + 60 + 25 = 135
Total demand = 60 + 40 + 20 + 25 = 135
Thus, the given problem is balanced transportation problem.
Now, we can apply the Vogel’s approximation method to minimize the total
cost of transportation.
Step 1: Identify the least and second least cost in each row and column and then
write the corresponding absolute differences of these values. For example, in
the first row, 2 and 3 are the least and second least values, their absolute
difference is 1.
In this case, we got 7 as the maximum penalty and 7 as the least cost of the
corresponding column.
Step 6: Now, again repeat step 3 by calculating the absolute differences for
the remaining rows and columns.
Step 7: In the previous step, except for one cell, every row and column
vanishes. Now, allocate the remaining supply or demand value for that
corresponding cell.
Solution:
TOTAL number of supply constraints : 3
TOTAL number of demand constraints : 4
Problem Table is
D1 D2 D3 D4 Supply
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14
Table-2
D1 D2 D3 D4 Supply Row Penalty
S1 19 30 50 10 7 9=19-10
S2 70 30 40 60 9 20=60-40
S3 40 8(8) 70 20 10 20=40-20
Demand 5 0 7 14
Column
21=40-19 -- 10=50-40 10=20-10
Penalty
Table-3
D1 D2 D3 D4 Supply Row Penalty
S1 19(5) 30 50 10 2 40=50-10
S2 70 30 40 60 9 20=60-40
S3 40 8(8) 70 20 10 50=70-20
Demand 0 0 7 14
Column
-- -- 10=50-40 10=20-10
Penalty
Table-4
D1 D2 D3 D4 Supply Row Penalty
S1 19(5) 30 50 10 2 40=50-10
S2 70 30 40 60 9 20=60-40
S3 40 8(8) 70 20(10) 0 --
Demand 0 0 7 4
Column
-- -- 10=50-40 50=60-10
Penalty
Table-5
D1 D2 D3 D4 Supply Row Penalty
S1 19(5) 30 50 10(2) 0 --
S2 70 30 40 60 9 20=60-40
S3 40 8(8) 70 20(10) 0 --
Demand 0 0 7 2
Column
-- -- 40 60
Penalty
Example-1
Find Solution using Row minima method
D1 D2 D3 D4 Supply
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14
Solution:
TOTAL number of supply constraints : 3
TOTAL number of demand constraints : 4
Problem Table is
D1 D2 D3 D4 Supply
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14
In 1st row, The smallest transportation cost is 10 in cell S1D4.
The allocation to this cell is min(7,14) = 7.
This exhausts the capacity of S1 and leaves 14 - 7 = 7 units with D4
Table-1
D1 D2 D3 D4 Supply
S1 19 30 50 10(7) 0
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 7
Table-2
D1 D2 D3 D4 Supply
S1 19 30 50 10(7) 0
S2 70 30(8) 40 60 1
S3 40 8 70 20 18
Demand 5 0 7 7
Table-3
D1 D2 D3 D4 Supply
S1 19 30 50 10(7) 0
S2 70 30(8) 40(1) 60 0
S3 40 8 70 20 18
Demand 5 0 6 7
Table-4
D1 D2 D3 D4 Supply
S1 19 30 50 10(7) 0
S2 70 30(8) 40(1) 60 0
S3 40 8 70 20(7) 11
Demand 5 0 6 0
Table-5
D1 D2 D3 D4 Supply
S1 19 30 50 10(7) 0
S2 70 30(8) 40(1) 60 0
S3 40(5) 8 70 20(7) 6
Demand 0 0 6 0
D1 D2 D3 D4 Supply
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14
Solution:
TOTAL number of supply constraints : 3
TOTAL number of demand constraints : 4
Problem Table is
D1 D2 D3 D4 Supply
S1 19 30 50 10 7
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 5 8 7 14
Table-1
D1 D2 D3 D4 Supply
S1 19(5) 30 50 10 2
S2 70 30 40 60 9
S3 40 8 70 20 18
Demand 0 8 7 14
Table-2
D1 D2 D3 D4 Supply
S1 19(5) 30 50 10 2
S2 70 30 40 60 9
S3 40 8(8) 70 20 10
Demand 0 0 7 14
Table-3
D1 D2 D3 D4 Supply
S1 19(5) 30 50 10 2
S2 70 30 40(7) 60 2
S3 40 8(8) 70 20 10
Demand 0 0 0 14
In 4th column, The smallest transportation cost is 10 in cell S1D4
The allocation to this cell is min(2,14) = 2.
This exhausts the capacity of S1 and leaves 14 - 2 = 12 units with D4
Table-4
D1 D2 D3 D4 Supply
S1 19(5) 30 50 10(2) 0
S2 70 30 40(7) 60 2
S3 40 8(8) 70 20 10
Demand 0 0 0 12
Table-5
D1 D2 D3 D4 Supply
S1 19(5) 30 50 10(2) 0
S2 70 30 40(7) 60 2
S3 40 8(8) 70 20(10) 0
Demand 0 0 0 2
There are two phases to solve the transportation problem. In the first phase,
the initial basic feasible solution has to be found and the second phase involves
optimization of the initial basic feasible solution that was obtained in the first
phase. There are three methods for finding an initial basic feasible solution,
1. NorthWest Corner Method
2. Least Cost Cell Method
3. Vogel’s Approximation Method
This article will discuss how to optimize the initial basic feasible solution
through an explained example. Consider the below transportation problem.
Solution:
Step 1: Check whether the problem is balanced or not.If
the total sum of all the supply from sources O1, O2, and O3 is equal to the total
sum of all the demands for destinations D1, D2, D3 and D4 then the
transportation problem is a balanced transportation problem.
Note: If the problem is not unbalanced then the concept of a dummy row or a
dummy column to transform the unbalanced problem to balanced can be
followed as discussed in this article.
Check the total number of allocated cells is equal to (m + n – 1). Again find
u values and v values using the formula ui + vj = Cij where Cij is the cost
value only for allocated cell. Assign u1 = 0 then we get v2 = 1. Similarly, we
will get following values for ui and vj.
Find the penalties for all the unallocated cells using the formula Pij = ui +
vj – Cij.
1. For C11, P11 = 0 + (-3) – 3 = -6
2. For C13, P13 = 0 + 0 – 7 = -7
3. For C14, P14 = 0 + (-1) – 4 = -5
4. For C24, P24 = 5 + (-1) – 9 = -5
5. For C31, P31 = 0 + (-3) – 8 = -11
6. For C32, P32 = 3 + 1 – 3 = 1
There is one positive value i.e. 1 for C32. Now this cell becomes new basic
cell.
Now draw a loop starting from the new basic cell. Assign alternate plus and
minus sign with new basic cell assigned as a plus sign.
Select the minimum value from allocated values to the cell with a minus sign.
Subtract this value from the cell with a minus sign and add to the cell with a
plus sign. Now the solution looks as shown in the image below:
(b) In the reduced matrix obtained from 2 (a) locate the smallest element in
each column and then subtract that from each element. Each row and column
now have at least one zero value.
(b) For each zero value that becomes assigned, eliminate (Strike off) all other
zeros in the same row and/ or column
(c) Repeat step 3 (a) and 3 (b) for each column also with exactly single zero
value all that has not been assigned.
(d) If a row and/or column has two or more unmarked zeros and one cannot be
chosen by inspection, then choose the assigned zero cell arbitrarily.
(e) Continue this process until all zeros in row column are either enclosed
(Assigned) or struck off (x)
If a zero cell was chosen arbitrarily in step (3), there exists an alternative
optimal solution. But if no optimal solution is found, then go to step (5).
(b) Examine the marked rows. If any zero occurs in those columns, tick the
respective rows that contain those assigned zeros.
(c) Repeat this process until no more rows or columns can be marked.
(d) Draw a straight line through each marked column and each unmarked row.
If a no of lines drawn is equal to the no of (or columns) the current solution is
the optimal solution, otherwise go to step 6.
(b) Subtract K from every element in the cell not covered by line.
(c) Add K to very element in the cell covered by the two lines, i.e.,
intersection of two lines.
Example:
1. In a computer centre after studying carefully the three expert
programmes, the head of computer centre, estimates the computer time
in minutes required by the experts for the application programmes as
follows:
Assign the programmers to the programmes in such a way that the total
computer time is minimum.
Step 3 (a):
Examine all the rows starting from first one- until a row containing only single
zero element is located, Here, rows 1 and 3 have only one zero in the cells (1,
C) and (3,A) resp, we assigned these zeros. All zeros in the assigned column
are crossed off as shown in table 3.
(b) We now examine each column starting from A in table 3, There is one
zero in column B in the cell (2, B). Assign this cell as shown in table 4.
(c) Since the no of Assignments (= 3) equal the no of rows (= 3), the optimal
solution is obtained.
How should the jobs be allocated one per employee so as to minimize the total
man- hours?
Solution:
Step (1) & (2) Applying step (2) of the algorithm, we get the reduced
opportunity time matrix as shown in Table (1).
In reduced table (1) the minimum time element in column I,II,III, IV, and V is
0,0,0,0,0 resp, subtracting these from the elements of the resp. column we get
same reduced matrix.
Step 3 (a):
We examine all the row starting from A one-by-one until a row containing only
single zero element is located. Here rows A, B and E have only one zero element
in the cells (A, II), (B, I) and (E, IV), Assignment is made in these
cells. All zeros in the assigned columns are now crossed off as shown in table
2.
(b) We now examine each column starting from column. 1. There is one zero
in column III, cell (C, III) Assignment is made in this cell. Thus cell (C, V) is
Crossed off. All zeros in the table now are either assigned or crossed off as
shown in Table 2.
The solution is not optimal because only four assignments are made.
Step 4:
Cover the zeros with minimum numbers of lines (= 4) as explained below.
(b) Mark (√) columns I and IV since row D has zero element in these columns.
(c) Mark (√) rows B & E since column 1 and (IV) have an assignment in rows
B and E resp.
(d) Since no other rows or columns can be marked draw straight lines through
the unmarked rows A & C and the marked columns I and IV as shown in Table
3.
Step 5:
Develop the new revised table by selecting the smallest element among all
uncovered elements by the lines in table 3 viz., 2. subtract K = 2 fromuncovered
elements including itself and add it to elements 5,10,8 and 0 incells (A, 1),
(A,IV), (C, 1)< and (E,IV) resp. which lie at the intersection of two lines.
Another’s revised table so obtained is shown in table 4.
Step 7:
Repeat step (3) to (5) to find a new solution. The new assignment is shown in
Table 5.
Since the no. of assignment (= 5) equals the no of rows (or columns), the
solution is optimal.
Example : A company has five machines that are used for four jobs. Each
job can be assigned to one and only one machine. The cost of each job on
each machine is given in the following Table.
Assignment Problem
Select the least uncovered element, i.e., 1, subtract it from other uncovered
elements, add to the elements at intersection of lines and leave the elements
that are covered with single line unchanged as shown in Table.
Assignment Problem
Number of lines drawn ≠ Order of matrix. Hence not Optimal. Select the
smallest uncovered element, in this case 1. Subtract 1 from all other
uncovered element and add 1 with the elements at the intersection. The
element covered by single line
remains unchanged. These changes are shown in Table. Now try to draw
minimumnumber of lines to cover all the zeros.
Optimal Assignment
Hence, the optimal solution is:
Unit IV Game Theory
Introduction:
Game theory was introduced by a mathematician, John Von Neumann andan
economist, Oskar Morgenstern, in 1950s. This theory aims at providing a
systematic approach to business decision making of organizations. It is
applied to evaluate the situations where individuals and organizations have
contradictory objectives.
In such a case, game theory helps in solving the problem and arriving at a
common consensus. Apart from this, the theory can be applied to analyze
activities, such as legal and political strategies and economic behavior. Over
a passage of time, the game theory has emerged as a vast and complex subject.
The games in the game theory are simple as well as complex. The main aim
of applying the game theory is to find out the best strategy to resolve a
particular problem. Moreover, the game theory helps organization by
increasing the probability of earning maximum profit and reducing the
probability of losses. The game theory has applications in sociology,
psychology, and mathematics.
Pure Strategy- If the player selects the same strategy each time, then it is a
pure strategy. In this case each player knows exactly what the other is going
to do, i.e. there is a deterministic situation and the objective of the players is
to maximize gains or to minimize losses.
Mixed Strategy - When the players use a combination of strategies and each
player is always kept guessing as to which course of action is to be selected
by the other, then it is known as a mixed strategy. Thus, there is a probabilistic
situation and the objective of the player is to maximize expected gains or to
minimize losses. Thus, mixed strategy is a selection among pure strategies
with fixed possibilities.
Optimal Strategy - A course of action which puts the player in the most
preferred position irrespective of the strategy of his competitors. Any
deviation from this strategy results in a decreased pay-off for the player.
Value of the Game - The expected pay-off of the game when all the players
of the game follow their optimum strategies. The game is called fair if the
value of the game is zero and unfair if it is non-zero.
Pay-off matrix
A two-person zero-sum game is conveniently represented by a matrix. The
matrix which shows the outcome of the game as the players select their
particular strategies, is known as the pay-off matrix. It is important to assume
that each player knows not only his own list of possible courses of action but
also that of his opponent.
Saddle point
In a zero-sum game, the pure strategies of two players constitute a saddle
point if the corresponding entry of the payoff matrixis simultaneously a
maximum of row minima and a minimum of column maxima. This decision-
making is referred to as the minimax-maximin principle to obtainthe best
possible selection of a strategy for the players.
In a pay-off matrix, the minimum value in each row represents the minimum
gain for player A. Player A will select the strategy that gives him the
maximum gain among the row minimum values. The selection of strategy by
player A is based on maximin principle. Similarly, the same pay-off is a loss
for player B. The maximum value in each column represents the maximum
loss for Player B. Player B will select the strategy that gives him the minimum
loss among the column maximum values.
The entries in the payoff matrix can be in any units as long as they represent
the utility (or value) to the player.
There are two key assumptions about the behavior of the players. The first
isthat both players are rational. The second is that both players are
greedy meaning that they choose their strategies in their own interest (to
promote their own wealth).
Example : Consider the example to solve the game whose pay-off matrix
is givenin the following table as follows:
Game Problem
The game is worked out using minimax procedure. Find the smallest value in
each row and select the largest value of these values. Next, find the largest
value in each column and select the smallest of these numbers. The procedure is
shown in the following table.
Minimax Procedure
Example : Solve the game with the pay-off matrix for player A as given in
table.
Game Problem
Select the largest element in row and smallest element in column. Check for
theminimax criterion,
Max Min = Min Max1 = 1
Therefore, there is a saddle point and it is a pure strategy.Optimum Strategy:
Player A A2 StrategyPlayer B B1 Strategy
The value of the game is 1.
The game is strictly determinable and fair. The saddle point exists and the
gamehas a pure strategy. The optimal strategies are given in the following
table.
Optimal Strategies
Example : Solve the game with the pay off matrix given in table and
determine thebest strategies for the companies A and B and find the value
In case of pay-off matrices larger than 2 × 2 size, the dominance property can
be used to reduce the size of the pay-off matrix by eliminating the strategies
that would never be selected.
Solution: Reduce the matrix by using the dominance property. In the given
matrix for player A, all the elements in Row 3 are less than the adjacent
elements of Row
Strategy 3 will not be selected by player A, because it gives less profit for
player
A. Row 3 is dominated by Row 2. Hence delete Row 3, as shown in table.
Reduced the Matrix by Using Dominance Property
Reduced 2 × 2 Matrix
Now, solve the 2 × 2 matrix, using the maximin criteria as shown below in
table.
Maximin Procedure
Therefore, there is no saddle point and the game has a mixed strategy.
Applyingthe probability formula,
p1 =2-6(1+2)-(7+6)
=-43-13
=410=25
q1 =2-7(1+2)-(7+6)
=-53-13
=510=12
q2 =1- q1 =1-
12=12
Introduction :
In any establishment, sooner or later equipment needs to be replaced,
particularly when new equipment gives more efficient or economical service
than the old one. In some cases, the old equipment might fail and work no more
or is worn out. In such situations it needs more expenditure on its maintenance
than before. The problem in such situation is to determine the best policy to be
adopted with respect to replacement of the equipment. The replacement theory
provides answer to this question in terms of optimal replacement period.
Replacement theory deals with the analysis of materials and machines which
deteriorate with time and fix the optimal time of their replacement so that total
cost is the minimum.
(In Rupees)
From the table it is noted that the average total cost per year, A(n) is minimum
in the 6th year (Rs. 3167). Also the average cost in 7th year(Rs.3171) is more
than the cost in 6th year. Hence the machine should be replaced after every 6
years.
Example 2
A Machine owner finds from his past records that the maintenance costs per
year of a machine whose purchase price is Rs. 8000 are as given below:
Year: 1 2 3 4 5 6 7 8
Maintenance 1000 130 170 220 290 380 480 6000
Cost: 0 0 0 0 0 0
Resale Price: 4000 200 120 600 500 400 400 400
0 0
Determine at which time it is profitable to replace the machine.
Solution C = Rs. 8000. Table 13.2 shows the average cost per year during
the life of machine. Here, The computations can be summarized in the
following tabular form:
Calculations for average cost of machine
The above table shows that the value of TA during fifth year is minimum.
Hence the machine should be replaced after every fifth year.
Introduction to Sequencing Models:
Sequence models are a very common sequence modeling technique in
machine learning that is used for analyzing sequence data. This blog post will
discuss types of sequence models, their examples, and how they can be used to
help with the understanding and analysis of sequences.
Sequence data are the data points which are ordered in the meaningful manner
such that earlier data points or observations provide the information about
later data points or observations. The time series data is an example of
sequence data which can be defined as a sequence of observations where each
observation is dependent on the previous one. Sequence data can be represented
as observations of one or more characteristics of events over time.
Is the output of flipping a coin a sequence data? Well, if the coin is fair,
the output of coin flips is not a sequence data. However, if the coin is
defective, the output can become sequence data.
Is the text appearing in a sentence, a sequence data? Yes, the text which
appears in a sentence is sequence data.
Is the movie a sequence data? Yes, the sequence of frames in a movie is
an example of sequence data. The CNN can be used to extract the features
from each frame (image) and passed to the sequence models for modeling
purpose.
Terminologies:
Number of Machines: The number of machines refer to the number of service
facilities through which a job must pass before it is assumed to be completed.
Processing Time: It is the time required by a job on each machine.
Processing Order: It refers to the order (sequence) in which machines are
required for completing the job.
Idle Time on a Machine: It is the time for which a machine does not have a
job to process, i.e idle time from the end of job (i-1) to the start of job i.
Total Elapsed Time: It is the time interval between starting the first job and
completing the last job including the idle time (if any) in a particular order by
the given set of machines.
No Passing Rule: It refers to the rule of maintaining the order in which jobs
are to be processed on given machines. For example, if n jobs are to be
processed on two machines M1 and M2 in the order M1 M2, then each job
should go to machine M1 first and then to M2.
Is the output of flipping a coin a sequence data? Well, if the coin is fair,
the output of coin flips is not a sequence data. However, if the coin is
defective, the output can become sequence data.
Is the text appearing in a sentence, a sequence data? Yes, the text which
appears in a sentence is sequence data.
Is the movie a sequence data? Yes, the sequence of frames in a movie is
an example of sequence data. The CNN can be used to extract the features
from each frame (image) and passed to the sequence models for modeling
purpose.
Types of sequence models
There are three different types of sequence models based on whether the input
and output to the model is sequence data or non-sequence data. They are as
following:
Machine Job(s)
1 2 3 -- - i -- - n
A A1 A2 A3 -- - Ai -- - An
B B1 B2 B3 -- - Bi -- - Bn
The problem is to find the sequence (or order) of jobs so as to minimize the
total elapsed time T. The solution of the above problem is also known as
Johnson s procedure which involves the following steps:
Step 1. Select the smallest processing time occurring in the list A1,A2,A3,
--- , An ; B1,B2,B3, --- , Bn if there is a tie, either of the smallest
processing times can be selected.
Step 2. If the least processing time is Ar , select the rth job first. If it isBs,
do the sth job last as the given order is AB
Step 3. There are now (n-1) jobs left to be ordered. Repeat steps I and II for
the remaining set of processing times obtained by deleting the
processing time for both the machines corresponding to the job
already assigned.
Step 4. Continue in the same manner till the entire jobs have beenordered.
The resulting ordering will minimize the total elapsed time T and is
called the optimal sequence.
Step 5. After finding the optimal sequence as stated above find the total
elapsed time and idle times on machines A and B as under:
Total The time between starting the first job in the optimal
elapse sequence on machine A and completing the last job in the
d time optimal machine B.
=
Idle (Time when the last job in the optimal sequence on
time sequences is completed on machine B)- (Time when the
on last job in the optimal sequences is completed on machine
machi A)
ne A =
Idle (Time when the first job in the optimal sequences is
time completed on machine A)+
on
machi
ne B =
Machine Job(s)
A B C D E F G H I
P 2 5 4 9 6 8 7 5 4
Q 6 8 7 4 3 9 3 8 11
Find the sequence that minimizes the total elapsed time T. Also calculate the
total idle time for the machines in this period.
Solution
The minimum processing time on two machines is 2 which correspond to task
A on machine P. This shows that task A will be preceding first. After assigning
task A, we are left with 8 tasks on two machines
Machine B C D E F G H I
P 5 4 9 6 8 7 5 4
Q 8 7 4 3 9 3 8 11
A G E
The problem now reduces to following 6 tasks on two machines with processing
time as follows:
Machine B C D F H I
P 5 4 9 8 5 4
Q 8 7 4 9 8 11
Here since the minimum processing time is 4 which occurs for tasks C and I
on machine P and task D on machine Q. Therefore, the task C which has less
processing time on P will be processed first and then task I and task D will be
placed at the last i.e., 7th sequence cell.
The sequence will appear as follows:
A C I D E G
In this reduced table the minimum processing time is 5 which occurs for tasks
B and H both on machine P. Now since the corresponding time of tasks B and
H on machine Q are same i.e. 8. Tasks B or H may be placed arbitrarily in the
4th and 5th sequence cells. The remaining task F can then be placed in the 6th
sequence cell. Thus the optimal sequences are represented as
A I C B H F D E G
or
A 1 C H B F D E G
Further, it is also possible to calculate the minimum elapsed time corresponding
to the optimal sequencing A → I → C → B → H → F → D → E → G.
Job Machine A Machine B
Sequence Time In Time Out Time In Time Out
A 0 2 2 8
I 2 6 8 19
C 6 10 19 26
B 10 15 26 34
H 15 20 34 42
F 20 28 42 51
D 28 37 51 55
E 37 43 55 58
G 43 50 58 61
Hence the total elapsed time for this proposed sequence staring from job A to
completion of job G is 61 hours .During this time machine P remains idle for
11 hours (from 50 hours to 61 hours)and the machine Q remains idle for 2 hours
only (from 0 hour to 2 hour ).
15.2 Processing of n Jobs through Three Machines
The type of sequencing problem can be described as follows:
a) Only three machines A, B and C are involved;
b) Each job is processed in the prescribed order ABC
c) No passing of jobs is permitted i.e. the same order over each
machine is maintained.
d) The exact or expected processing times A1,A2,A3, --- , An ; B1,B2,B3, -
-- , Bn and C1,C2,C3, --- , Cn are known and are denoted by the
following table
Job(s)
Machine 1 2 3 -- - i - - n
-
A A1 A2 A3 -- - Ai -- - An
B B1 B2 B3 -- - Bi -- - Bn
C C1 C2 C3 Ci Cn
Our objective will be to find the optimal sequence of jobs which minimizes the
total elapsed time. No general procedure is available so far for obtainingan
optimal sequence in such case. However, the Johnson s procedure can be
extended to cover the special cases where either one or both of the following
conditions hold:
a) The minimum processing time on machine A ≥ the maximum
processing time on machine B.
b) The minimum processing time on machine C ≥ the maximum
processing time on machine B.
The method is to replace the problem by an equivalent problem involving n jobs
and two machines. These two fictitious machines are denoted by G and H and
the corresponding time Gi and Hi are defined by
Gi = Ai + Bi and Bi + Ci
Now this problem with prescribed ordering GH is solved by the method with
n jobs through two machines, the resulting sequence will also be optimal for
the original problem. The above methodology is illustrated by following
example:
Example 2
There are five jobs (namely 1,2,3,4 and 5), each of which must go through
machines A, B and C in the order ABC. Processing Time (in hours) are given
below:
Jobs 1 2 3 4 5
Machine A 5 7 6 9 5
Machine B 2 1 4 5 3
Machine C 3 7 5 6 7
Find the sequence that minimum the total elapsed time required to complete
the jobs.
Solution
Here Min Ai = 5; Bi = 5 and Ci =3 since the condition of Min. Ai ≥ Max. Bi is
satisfied the given problem can be converted into five jobs and two machines
problem.
Jobs
1 7 5
2 8 8
3 10 9
4 14 11
5 8 10
The Optimal Sequence will be
2 5 4 3 1
Total elapsed Time will be
Machine A Machine B Machine C
Jobs
In Out In Out In Out
2 0 7 7 8 8 15
5 7 12 12 15 15 22
4 12 21 21 26 26 32
3 21 27 27 31 32 37
1 27 32 32 34 37 40
Min. total elapsed time is 40 hours.
Idle time for Machine A is 8 hrs. (32-40)
Idle time for Machine B is 25 hours (0-7, 8-12, 15-21, 26-27, 31-32 and
34-40)
Idle time for Machine C is 12 hours (0-8, 22-26.)
15.3 Problems with n Jobs and m Machines
Let there be n jobs, each of which is to be processed through m machines, say
M1,M2, --- , Mm in the order M1,M2,M3, --- , Mm. Let T ij be the time taken by
the ith machine to complete the jth job.
The iterative procedure of obtaining an optimal sequence is as follows:
Step I: Find (i) minj (T1j) ii) minj (Tmj) iii) maxj (T2j,T3j,T4j, --- , T(m-1)j) for
j=1,2,---, n
Step II: Check whether
a. minj(T1j) ≥ maxj (Tij) for i=2,3, ,m-1
Or
b. minj(Tmj) ≥ maxj (Tij) for i=2,3,---,m-1
Step III: If the inequalities in Step II are not satisfied, method fails,
otherwise, go to next step.
Step IV: Convert the m machine problem into two machine problem by
introducing two fictitious machines G and H, such that
����������������� TGj = T1j + T2j + --- +T(m-1)j
and THj = T2j + T3j + --- +Tmj
Determine the optimal sequence of n jobs through 2 machines by usingoptimal
sequence algorithm.
Step V: In addition to condition given in Step IV, if Tij = T2j + T3j + ---
+Tmj = C is a fixed positive constant for all i = 1, 2, 3, , n then
determine the optimal sequence of n jobs and two machines M 1 and
Mm in the order M1Mm by using the optimal sequence algorithm.
Example 3
Find an optimal sequence for the following sequencing problem of four jobs
and five machines when passing is not allowed, of which processing time (in
hours) is given below:
Job Machine
A B C D E
1 7 5 2 3 9
2 6 6 4 5 10
3 5 4 5 6 8
4 8 3 3 2 6