Professional Documents
Culture Documents
Solving Job-Shop Scheduling Problems by Genetic Algorithm
Solving Job-Shop Scheduling Problems by Genetic Algorithm
by Genetic Algorithm
Mitsuo GEN, Yasuhiro TSUJIMURA and Erika KUBOTA
Department of Industrial and Systems Engineering
Ashikaga Institute of Technology, Ashikaga, 326 Japan
Email: { gen tsujimr}@genlab.ashitech.ac.jp
-
problem-specific information in the representa- one undertakes the burden of developing com-
tion and genetic operators and addressed a lim- plicated genetic operators, this scheme has the
ited form of JSP in which certain batches of tasks advantage of being very direct.
must be scheduled continuously. Also, Nakano The indirect representation needs interpreting
[9] used a conventional GA for the JSP, supple- program to translate it to valid schedule. The
mented with algorithms for interpreting and re- advantage of this scheme is the simplicity of the
pairing genomes[l0][12][13][14]. individual structure and the operators, and the
In this paper, we introduce our implementa- drawback is that the genetic algorithm is con-
tion of GA t o solve JSP and discuss its efficiency strained to search only in the space of all possi-
comparing results of numerical experiments us- ble permutation of individual’s genes.
ing GA and branch-and-bound method. We adopt the indirect approach t o represent
the individual. The representation can be viewed
11. GENETIC ALGORITHM as a kind of enlarged job-list, which contains
N x M genes, where N is the number of jobs and
,4Genetic Algorithm is based on the evolution M is the number of machines. Because every job
system and hereditary[ll]. In the evolution pro- is assumed to be processed in each machine only
cess the population undergoes sexual recombina- one time, so every job appears in the job-list ex-
tion (crossover), mutation and natural selection actly M times. As a valid schedule, the process-
that select the best individuals for the next gen- ing order of jobs is given for each machine and
eration, and so on. the indirect individual then can be translated
into a valid schedule according to the predeter-
The components of GA are as follows: mined processing order of machines.
1578
11.2 Evaluation Function o1 = 3 2 i 2 3 4 i 3 2 1 3 4 4 1 3 4 1 2 3
02 = 4 1 2 4 1 2 3 4 2 1 2 3 4
During each iteration, the individuals in the
current population are evaluated, using some
The order of genes in the partial schedule is
measure of fitness. There is a number of charac-
important in the structure of the building block.
teristics of the evaluation function that enhance
Thus, we must try to maintain its orders as sim-
or hinder a evolution program's performance. In
ilar as possible with the original schedule.
the most optimization applications, fitness is cal-
In schedule ol, we must delete two "3" and one
culated based on the natural objective function.
"1". In the schedule p2, the first "3" of the par-
In our case, the fitness of each individual is eval-
tial schedule is the first "3" in the entire sched-
uated as the following total elapsed time of the
ule. Then two "3", the first and second "3" of
corresponding schedule:
o1 can be deleted. At the same form, the "1"
of partial schedule in p2 is the first "1'7 in en-
tire schedule, then the first "1" in ol has been
deleted .
where ft(j) is the finishing time of job j. In schedule 0 2 , we must add two "3" and one
"1". The "1" in the partial schedule of pl is the
11.3 Crossover second "1" in the entire schedule, then one '71"
before as partial schedule in o2 has bee added.
Because our representation is not the permu- We must add two "3" at any position in 02,that
tation of jobs, the well-known PMX (Partially is, these can be placed before or after the partial
Mapped Crossover), CX (Cycle Crossover), OX schedule of 02.
(Order Crossover) or ER( Edge Recombination)
01 ~ 2 2 143 2 1 3 4 4 1 3 4 1 2 3
crossover operators are not suitable for it due to
02 =1 4 1 2 43 123342 1234
the complex mapping relationship.
We propose a partial schedule of exchanging
crossover. First, the partial schedules are picked 11.4 Mutation
out randomly in the parents respectively. The
partial schedule is identified with the same job in Although the crossover tries t o improve the
the first and last positions of the partial schedule. fitness in its offsprings, the chances of offsprings
And then we exchange the two partial schedules. converged in a local solution are existing. Re-
Usually, the partial schedules have the different pairing this situation, there is an escape mecha-
length (contains the different number of genes). nism called mutation, which changes genes in the
The offsprings generated after exchange may be same list randomly with little probability. We
larger or shorter than the determined length, it is define a mutation operator as follows: generate
necessary to delete relatively excessive genes or randomly two positions in the list and exchange
to add relatively necessary genes to make them their genes, and if the two genes are same one,
become to the legal offsprings. retry t o select new positions.
1579
11.5 Selection step 1: Generating of the Initial Population
Produce pop-size individuals Si (i=l,. *
The selection procedure used here is the eli- pop-size) that contain M x N genes between
tist selection. After the population undergoes 1 and N , and each job must exactly appeaI
crossover and mutation at rates p , and p , re- M times.
spectively, the size of population increases as
+ +
(1 p,) x (1 p,) x pop-size. Within the pop- step 2: Calculation of the Evaluation Func-
tion and Keeping the Best Individual
ulation, we select the best pop-size individuals
conforming their fitness for next generation. step 2.1
1580
legalize the offsprings; rat.e is 0.4. Figures 1, 2 and 3 show the results of
i=i+2; 20 x 5 job-shop scheduling problems with differ-
end ent parameters of crossover, mutation and pop-
end ulation size.
Table 4 hluth and Thompson’s benchmark
step 4: Mutation
begin Papers (GA)
.a=@
, Nakano (1991)
6x6
55
10x10
965
20x5
1215
while i < pop-size x p , do Yamada (1992) 55 930 1184
pick two positions in the job-list; This method (1994) 55 962 1175
exchange their genes;
i=i+l;
end
end
1 I50 I.
IV. NUMERICAL EXPERIMENTS 0 10000 20000 30000 40000 50000
generation
Muth and Thompson’s benchmarks consist of
three problems: 6 x 6, 10 x 10, 20 x 5. The Figure 1 Evolution process with different pa-
historical progress in branch-and-bound method rameters of crossover p,.
and GA together with the results are shown in
Table 3 and Table 4.
1650 i
Table 3 Muth and Thompson’s benchmark
1550 i
I /
0.1
1581
[4] Barker J.R. and G.B. McMahon: Scheduling
the general job-shop, Manage. Sci., 31, 5, pp.
594-598, 1985.
[5] Carlier J. and E. Pinson: An algorithm for solv-
80 40 ing the job-shop problem. Manage, Sci., 35, 2,
/ 60
pp- 164-176, 1989.
[6] Davis L.: Job shop scheduling with genetic al-
gorithm, Proc. of 1st ICGA and their Applica-
tions, Pittsburgh, pp. 136-140, 1985.
1150 7[7] Whitley D., T. Starkweather, D’Ann Fuquay:
0 10000 20000 30000 40000 50000
Scheduling problems and traveling salesmen:
generation
The genetic edge recombination operator, Proc.
Figure 3 Evolution process with different pa- of 3rd ICGA and their Applications, San Ma-
rameters of population size pop-size. teo, pp. 133-140, 1989.
[8] Bagchi S., S. Uckun, Y. Miyabe, K. Kawamura:
Exploring problem-specific recombination op-
V. CONCLUSION erators for job shop, Proc. of 4th ICGA, San
This paper proposed the new approach for Mateo, pp. 10-17, 1991.
solving Job-shop Schedulig Problem (JSP). JSP [9] Nakano R.: Conventional Genetic Algorithms
is among the hardest combinational problems for Job-Shop Problems, Proc. of 4th ICGA,
and its resolution with conventional method, as San Mateo, pp. 477-479, 1991.
branch-and-bound method, spent a computa-
tional time reIatively. In this paper, some modi- [lo] Yamada, T. and R. Nakano: A Genetic Al-
fications have bee performed with a Genetic Al- gorithm Applicable to Large-scale Job-Shop
gorithm(GA) in order t o solve JSP effectively. In Problems, Parallel Problem Solving from Na-
ture 2, Manner and Manderick(ed), pp. 281-
using GA we demonstrate that choosing suitable
290, 1992.
representation of individuals, genetic operators
and parameters of evolutional system are an im- [ll] Michalewicz, 2.: Genetic Algorithms + Data
portant step to get better results. Also, we have Structures = Evolution Programs, Springer
shown its efficiency by results on graphics which Verlag, 1992.
are obtained with implemetation in Turbo C. [12] Gen. M., Y. Tsujimura, E. Kubota, C. Inseong:
REFERENCES A Genetic Algorithm for Flow Shop Problem.
Proc. of JIMA Fall Meeting, pp. 43-44, 1993
[l] Muth, .J.F. and G.L. Thompson: Industrial (in Japanese).
Scheduling, Prentice Hall, Englewood Cliffs,
Ney Jersey, 1963. [13] Gen. M., Y. Tsujimura, E. Kubota: Solving
Job-Shop Scheduling Problem Using Genetic
[a] Balas, E.: Machine sequencing via disjunctive Algorithm, Proc. of 16th International Confer-
graphs: an implicit enumeration algorithm, ence on Computers & Industrial Engineering,
Oper. Res., 17, pp. 941-957, 1969. Japan, pp. 576-579, 1994.
[3] h4cMahon G. and M. Florian: On scheduling [14] Gen. M., Y. Tsujimura, E. Kubota: Genetic
with ready times and due dates to minimize Algorithm for hlultiprocessor Scheduling Prob-
maximum lateness, Oper. Res., 23, 3, pp. 475- lems. Proc. of 10th Fuzzy System Symposium,
482, 1975. pp. 43-46, 1994 (in Japanese).