Scheduling 1
Scheduling 1
Production Scheduling
• ‘n’ jobs to be processed – each has setup time, processing time,
and a due date.
• To be completed – each job is to be processed at several machines.
• Sequencing the jobs on the machines to optimize a certain
performance criterion.
List of performance criteria – to be optimized
• Mean flow time – mean time in the shop
• Mean earliness of jobs (Job is completed before its due date – its lateness value
is negative – it is referred as earliness)
• Mean tardiness of jobs (Job is completed after its due date – its lateness value is
positive)
.
Classification of Scheduling
Single machine scheduling
- n jobs with same single operation on each of the jobs.
• Total length of the schedule (that is, all the jobs have finished
processing).
1 𝑛
• Mean Tardiness ത
𝑇 = σ𝑗=1 Tj
𝑛
A 8 5
B 7 10
Solution
MC 1 Job A Job B
MC 1 Job B Job A
A 10 8
B 9 11
Solution
MC 2 Job A Job B
MC 2 Job B Job A
J1 7
J2 6
J3 8
J4 5
Assume, sequence A - J1-J2-J3-J4
Job Wi ti Ci
1 0 7 7
MFTsq-A
2 7 6 13 67/4 = 16.75
3 13 8 21
4 21 5 26
41 + 26 67 sequence C –Shortest processing Time(SPT)
sequence B - J2-J3-J1-J4 J4-J2-J1-J3
Job Wi ti Ci Job Wi ti Ci
J2 0 6 6 J4 0 5 5
J3 6 8 14 J2 5 6 11 MFTsq-C
J1 14 7 21 J1 11 7 18 60/4 = 15
J4 21 5 26 J3 18 8 26
41 + 26 67 34 + 26 60
Problem
Job J 1 2 3 4 5 6
PT (tj) 10 8 8 7 12 15
DD (dj) 15 10 12 11 18 25
EDD sequence
Lateness = Completion time – Due Date
Job PT CT DD Lateness
Job PT CT DD Lateness
2 8 8 10 -2
1 10 10 15 -5
4 7 15 11 4
2 8 18 10 8
3 8 23 12 11
3 8 26 12 14
1 10 33 15 18
4 7 33 11 22
5 12 45 18 27
5 12 45 18 27
6 15 60 25 35 (Max.)
6 15 60 25 35 (Max.)
Find the average flow time, tardiness and lateness for each job if they are
processed in
a) order A-B-C-D-E
b) order of Shortest processing Time
c) order in Earliest Due Date
Solution:
a) Jobs processed in the order A-B-C-D-E
Job A B C D E
Processing Time 4 7 6 2 3
Flow time 4 4+7=11 11+6=17 17+2=19 19+3=22
Due Date 15 16 8 21 9
Tardiness 0 0 9 0 13
Lateness -11 -5 9 -2 13
Average Flow time =( 4+11+17+19+22)/5 = 73/5 =14.6
Average Tardiness =(0+0+9+0+13)/5 = 22/5=4.4
Average Lateness = (-11-5+9-2+13)/5 = 4/5= 0.8
(b) Order according to SPT. The sequence will be D-E-A-C-B
Job D E A C B
Processing Time 2 3 4 6 7
Flow time 2 2+3=5 5+4=9 9+6=15 15+7=22
Due Date 21 9 15 8 16
Tardiness 0 0 0 7 6
Lateness -19 -4 -6 7 6
Job C E A B D
Processing Time 6 3 4 7 2
Flow time 6 6+3=9 9+4=13 13+7=21 21+2=23
Due Date 8 9 15 16 21
Tardiness 0 0 0 5 2
Lateness -2 0 -2 5 2
1 5 4
2 3 1
3 6 2
4 7 8
Gnatt Chart
Job Sequence: 2-1-4-3 Make span: 25 Idle times on MC 2: 0-3, 4-8, 12-15
MC 1 J2 J1 J4 J3
MC 1 J3 J4 J1 J2
MC 2 Idle J3 Idle J4 J1 J2
0 6 8 13 18 21 25 26
Time
n jobs, Two machines
Johnson’s Algorithm
Step 2a. If the minimum processing time requires machine 1, place the associated
job in the first available position in sequence. Go to step 4.
Step 2b. If the minimum processing time requires machine 2, place the associated
job in the last available position in sequence. Go to step 4.
Step 3. when there is a tie in selecting the minimum processing time, then there may
be three solution.
step 3a. If equal minimum value occur only for machine 1, select the job
with smallest processing time in the corresponding M/C 2 and to be placed in the
first of the sequence.
step 3b. If equal minimum value occur only for machine 2,
select the job with smallest processing time in the corresponding
M/C 1 and to be placed in the last of the sequence.
step 3c. If there are equal minimum values one for each
machine, then place the job of machine 1 first and then job of
machine 2 last in the sequence.
Consider 2 m/c and 6 job flow shop scheduling problem. Using Johnson’s
algorithm, Obtain optimal sequence which will minimize the makespan
Job 1 2 3 4 5 6
MC 1 5 2 13 10 8 12
MC 2 4 3 14 1 9 11
Solution
Make span
Johnson's Algorithm
Consider 2 m/c and 8 job flow shop scheduling problem. Obtain optimal sequence
which will minimize the makespan
Job 1 2 3 4 5 6 7 8
MC 1 (Pj1) 5 2 1 7 6 3 7 5
MC 2 (Pj2) 2 6 2 5 6 7 2 1
Optimal Sequence: 3-2-6-5-4-7-1-8
Make span
Extension of Johnson’s Rule (n jobs, 3 M/C)
Consider 3 M/C and n jobs flow shop scheduling problem
Job Processing Time
MC 1 MC 2 MC 3
1 t11 t12 t13
2 t21 t22 t23
3 t31 t32 t33
. . . .
. . . .
i ti1 ti2 ti3
. . . .
. . . .
n tn1 tn2 tn3
If any one of the below conditions is satisfied then, we can extend the Johnson’s
algorithm
1) if min ti1 ≥ max ti2
2) if min ti3 ≥ max ti2
Extension of Johnson’s Rule
• Create hypothetical problem with two m/c’s and n jobs as shown in table.
• Objective is to obtain optimal sequence, then makespan is to be determined for
optimal sequence
If any one of the below conditions is satisfied then, we can extend the Johnson’s
algorithm
1) if min ti1 ≥ max ti2
2) if min ti3 ≥ max ti2
Condition 2 is satisfied,
Optimal Sequence
Job MC 1 + MC2 MC2 + MC 3
1 11 18
2 21 21
3 14 19
4 22 26
Same procedure of 2 M/C problem is applied here to find optimal sequence
Optimal sequence: Sequence 1: 1-3-4-2
Sequence 2: 1-3-2-4
Job Processing Time (in hour) Idle Idle
Machine 1 Machine 2 Machine 3 Time Time
MC 2 MC 3
in out in out in out
1 0 3 3 11 11 21 3 11
3 3 11 11 17 21 34 0 0
4 11 23 23 33 34 50 6 0
2 23 35 35 44 50 62 2 0
Make span
Similar procedure for sequence 2,
Johnson’s Algorithm for 3 M/Cs
Consider the following 3 M/Cs and 7 jobs flow shop problem
Job 1 2 3 4 5 6 7
MC 1 (PT) 1 3 7 9 4 5 2
MC 2 (PT) 7 3 8 2 8 6 1
MC 3 (PT) 8 10 9 11 9 14 12
If any one of the below conditions is satisfied then, we can extend the Johnson’s
algorithm
Job MC 1 + MC2 MC2 + MC 3
1) if min ti1 ≥ max ti2
2) if min ti3 ≥ max ti2 1 8 15
Condition 2 is satisfied, 2 6 13
Optimal Sequence 3 15 17
4 11 13
5 12 17
6 11 20
7 3 13
Same procedure of 2 M/C problem is applied here to find optimal sequence
Optimal sequence: 7-2-1-4-6-5-3
Make span
Problem
Consider 2 m/c and 6 job flow shop scheduling problem. Using Johnson’s
algorithm, Obtain optimal sequence which will minimize the makespan
Job 1 2 3 4 5 6
MC 1 4 2 8 2 9 10
MC 2 1 3 7 6 5 11
Optimal Sequence: 2-4-6-3-5-1
Make span
Problem
Consider 2 m/c and 6 job flow shop scheduling problem. Using Johnson’s
algorithm, Obtain optimal sequence which will minimize the makespan
Job 1 2 3 4 5 6
MC 1 3 1 8 5 9 10
MC 2 2 7 4 4 6 11
Optimal Sequence: 2-6-5-3-4-1
Make span
CDS Heuristic (n jobs m machines)
• Difficult to get optimal solution in finite time for large size problems.
• Use efficient heuristics for large size problems.
• CDS (Campbell, Dudek and Smith) heuristic is one such heuristic used for flow
shop scheduling.
Stage 1, t1j1 = tj1 and t1j2 = tjm
Johnson’s rule is applied to first and ‘m’th operations and intermediate
operations are ignored.
Stage 2, t2j1 = tj1 + tj2, t2j2 = tjm + tj,m-1
Johnson’s rule is applied to the sum of the first two and the last two
operation processing times. In general at stage i,
tij1 = σ𝒊𝒌=𝟏 𝒕𝒋𝒌 and tij2 = σ𝒊𝒌=𝟏 tj,m−k+1
For each stage i(i=1,2,…, m-1), the job order obtained is used to calculate a
makespan for the original problem. After m-1, stages, the best makespan among the
m-1 schedules is identified. (some of the m-1 sequences may be identical).
Find the makespan using the CDS heuristic for the following flow shop problem
Job j tj1 tj2 tj3 tj4
1 4 3 7 8 Stage 1 Optimal Sequence: 3-2-1-4
2 3 7 2 5
job MC 1 (tj1) MC 2 (tj2)
3 1 2 4 7
1 4 8
4 3 4 3 2
2 3 5
3 1 7
4 3 2
Job J A B C D E
PT (tj) 5 4 2 6 9
DD (dj) 15 7 8 11 13
Find the average flow time, tardiness and lateness for each job if
they are processed in
a) order of Shortest processing Time
b) order in Earliest Due Date
Solution
SPT EDD
➢ Sequence: C-B-A-D-E ➢ Sequence: B-C-D-E-A
➢ Average Flow time : 12.4 ➢ Average Flow time : 13.8
➢ Average Tardiness : 3.8 ➢ Average Tardiness : 4
➢ Average Lateness : 1.6 ➢ Average Lateness : 3
Problem
Consider 2 m/c and 7 job flow shop scheduling problem. Using Johnson’s
algorithm, Obtain optimal sequence which will minimize the makespan.
Job 1 2 3 4 5 6 7
MC 1 6 3 10 5 9 7 4
MC 2 4 2 5 9 5 8 3
Optimal Sequence: 4-6-3-5-1-7-2
Make span
Consider the following 3 M/Cs and 7 jobs flow shop problem. Find the
optimal sequence and makespan.
Job 1 2 3 4 5 6 7
MC 1 (PT) 2 4 8 10 5 6 3
MC 2 (PT) 8 4 9 3 9 7 2
MC 3 (PT) 9 11 10 12 10 15 13
If any one of the below conditions is satisfied then, we can extend the
Johnson’s
algorithm
1) if min ti1 ≥ max ti2
2) if min ti3 ≥ max ti2
Condition 2 is satisfied,
Optimal Sequence
Job MC 1 + MC2 MC2 + MC 3
1 10 17
2 8 15
3 17 19
4 13 15
5 14 19
6 13 22
7 5 15
Same procedure of 2 M/C problem is applied here to find optimal sequence
Optimal sequence: 7-2-1-4-6-5-3
Make span
Find the Make span using the CDS heuristic for the following flow shop problem.
Job j 𝑇𝑗 1 𝑇𝑗 2 𝑇𝑗 3 𝑇𝑗 4
1 9 3 5 8
2 2 4 3 8
3 5 8 3 9
4 7 7 7 4
Solution
➢ Stage 1 : 2-3-1-4
❖ Makespan : 41
➢ Stage 2 : 2-1-3-4
❖ Makespan : 42
➢ Stage 3 : 2-3-4-1
❖ Makespan : 42