Multi-agent Optimization Design for Multi-resource Job Shop Scheduling Problems Fan Xue and Wei Fan College of Computer Science and Technology, Civil Aviation University of China, Tianjin 300300, P.R. China wfan@cauc.edu.cn Abstract. As a practical generalization of the job shop scheduling problem, multi-resource job shop scheduling problem (MRJSSP) is discussed in this paper. In this problem, operations may be processed by a type of resources and jobs have individual deadlines. How to design and optimize this problem with DSAFO, a novel multi-agent algorithm, is introduced in detail by a case study, including problem analysis, agent role specification, and parameter selection. Experimental results show the effectiveness and efficiency of designing and optimizing MRJSSPs with multi-agent. 1 Introduction A practical generalization of the job shop scheduling problem (JSSP), which we call the multi-resource job shop scheduling problem (MRJSSP), is concerned in this paper. Informally, the problem can be stated as follows. There are a set of jobs and a set of resources. Each job consists of a lattice of operations that must be processed in a given order, and has, individually, a job ready time and a job deadline. Each operation is given an integeral processing time, and a longer resource usage time (plan time) for extra traffic (spatial distribution), preparation, and reset actions. Each operation needs one resource to process, and the processing is uninterruptible. Each resource can process only one operation simultaneously. The objective of MRJSSP is to find the best scheduling solution with minimal resource consumption, i.e. maximal resource utility. JSSP has been studied by both academic and industrial society for decades [1], however in many practical situations, (i) an operation can be processed by any one resource (or machine) from a group; (ii) jobs have individual deadlines; (iii) the requirement of no tardiness for any jobs is more important than makespan; and (iv) to reduce consumption as much as possible in order to maximize the machine utilities. Those are, fitly, the cases of MRJSSPs. M. Perregaard (1995) proposed multi-processor job shop scheduling problem (MPJSSP), which concerned multiple processing capacity as well, and A. Cesta, A. Oddi, and S. F. Smith (2000) developed an iterative improvement search approach for it. W. P. M. Nuijten and E. H. L. Aarts (1996) [4] presented another problem: multiple capacitated job shop scheduling problem (MCJSSP), which D.-S. Huang, L. Heutte, and M. Loog (Eds.): ICIC 2007, LNAI 4682, pp. 1193–1204, 2007. c Springer-Verlag Berlin Heidelberg 2007  1194 F. Xue and W. Fan extended MPJSSP by allowing each operation has a size. Nevertheless, both MPJSSP and MCJSSP ignored the spatial conditions and supporting handling in real-world engineering processes. Furthermore most of scheduling works are, practically, pre-scheduled by domain experts, so what we need to optimize is, usually, to maximize the resource utility to meet a timetable, not the makespan. All of these are well presented in MRJSSP, which is detailed in Section 2. The remainder of the paper is structured as follows: Section 2 represents a definition of the multi-resource job shop scheduling problem. Section 3 reviews the DSAFO algorithm briefly. Section 4 demonstrates the design procedure via a case study. Experimental results appear in Section 5 and a brief conclusion is given in Section 6. 2 The Multi-resource Job Shop Scheduling Problem Definition 1 (MRJSSP). An instance of multi-resource job shop scheduling problem is a tuple F, O, R, T , , D, F, rt, st, ut, et, tt, Ω, γ, s where - a set of n jobs; J = {j1 , j2 , . . . , jn } O = {o1 , o2 , . . . , op } = O1 ∪ O2 ∪ . . . ∪ Om , where ∀ Omi ∩ Omj =Ø mi =mj - a set of p operations in m types (partitions); R = {r1 , r2 , . . . , rq } = R1 ∪ R2 ∪ . . . ∪ Rt , where ∀ Rti ∩ Rtj =Ø ti =tj - a set of q resources in t types (partitions); C = O1 × Rt1 ∪ O2 × Rt2 ∪ . . . ∪ Om × Rtm - processing capabilities;  : O → O - precedence or equality, decomposing O into lattices (specially, chains) of jobs; D : J → Z+ deadline of a job; 0 J : O → J - job belonging to; rt : O → Z+ - operation ready time; 0 st : O → Z+ - non-zero operation service time; ut : O → Z+ - operation setup time; 0 et : O → Z+ - operation reset time; 0 - resource traffic time for an operation; tt : R × O → Z+ 0 Ω : R × Z+ 0 → O ∪ {Ø} - which operation is in process at a certain time, returns Ø when non-single operations assigned. The objective is to find two functions: s and γ, where γ : O → R - assign resources; s : O → Z+ 0 - assign service start time, s.t. ∀ [ o, γ(o) ∈ C o∈O ∧rt(o) ≤ s(o) ∧s(o) + st(o) ≤ D(F (o)) ∧ ∀  s(o) + st(o) ≤ rt(o ) o≺o ∧ ∀ Ω(γ(o), τ ) = o] s(o)−ut(o)−tt(γ(o),o)≤τ DueDateri , def dri rj = 0.01, DueDaterj = DueDateri , ⎪ ⎩ (DueDateri − DueDaterj )/30, DueDaterj < DueDateri . And rest parameters of MMAS are: α = 1.5, β = 2, ρ = 0.05, τinit = 1, τmax = 100, τmin = 0.01, Nant = n/5 (upper integer), NCmax = 150. And for each successful ant run R done by ant i, all of edges in Hamilton circle of R get a positive feedback  10 < ri , rj >∈ circle of R; 2, i Δτri rj = (resR +jobR /3) 0, otherwise. to reinforce the whole algorithm for fewer resources and jobs. Then DSAFO (with parameters: AgentNumberBT =4, Blockfactor=1/12, Delayfactor=1/6, Syncycle=5), EDD* (EDD in run-and-schedule), ERT* (earliest ready time first in run-and-schedule) and MMAS were tested with real-world AGSS test data with 252 transfer flights. We choose BT related operations (1,008 activities in total) to test performances of these algorithms. A comparison in BT consumption and 4-hour BT jobs arrangement is shown in Table 1. Additionally we put time cost and average CPU rate in the table. The best value in each group is bolded. Table 1. Optimization algorithm comparison Algorithm Time CPU DSAFO ≈144 sec <1% MMAS ≈ 12 hours ≈100% EDD* ≈43 sec <1% ERT* ≈43 sec <1% Resources 4-hour jobs MIN MAX AVG MIN MAX AVG 47 47 53 52 56 — 53 52 49.9 123 130 126.3 — 141 — — 53 129 129 129 52 130 130 130 From Table 1, it can be concluded that DSAFO and MMAS both do well in resource consumption for MRJSSPs, and DSAFO do better in BT jobs arrangement. Furthermore, DSAFO cost not too much time (several minutes) and very low CPU rate, in fact most time is used to maintain effective message transmission. On the contrary, MMAS costs very much time and near 100% CPU rate. 6 Conclusion and Future Works In this paper, we present a practical general model of the job shop scheduling problem, i.e. multi-resource job shop scheduling problem, and demonstrates Multi-agent Optimization Design 1203 a design and optimization process on this problem with a novel multi-agent algorithm DSAFO. We have shown that this design and optimization process is comprehensive for extra scheduling constraints and the experimental results shows its effectiveness and efficiency. One of the future works is to put forward an easy-to-use schedule software to simplify the design process. A preliminary development environment AGSAP has been developed to apply DSAFO to aid common AGSS optimization in [11]. In future, more easy-to-use development environments should be put forward for general MRJSSPs. Acknowledgement The authors acknowledge the support by National Natural Science Foundation of China (NSFC) under Grant No. 60472123. References 1. Jain, A.S., Meeran,S.: Deterministic Job-Shop Scheduling: Past, Present and Future. European Journal of Operational Research, 113(2) (1999) 390-434 2. Perregaard, M.: Branch and Bound Method for the Multiprocessor Jobshop and Flowshop Scheduling Problem. Master Thesis, Departement of Computer Science, University of Copenhagen, Danemark. (1995) 3. Cesta, A., Oddi, A., and Smith, S. F: Iterative flattening: a scalable method for solving multi-capacity scheduling problems. In Proceedings of the Seventeenth National Conference on Artificial intelligence and Twelfth Conference on innovative Applications of Artificial intelligence (July 30 - August 03, 2000). AAAI Press / The MIT Press (2000) 742-747 4. Nuijten, W.P.M., Aarts, E.H.L.: A Computational Study of Constraint Satisfaction for Multiple Capacitated Job Shop Scheduling. European Journal of Operational Research, 90(2) (1996) 269-284 5. Garey, M.R., Johnson, D.S.: Computers and Intractability - a Guide to the Theory of NP-completeness. W.H. Freeman and Company, New York. (1979) 6. Yokoo, M., Durfee, E.H., Ishida, T., Kuwabara K.: The Distributed Constraint Satisfaction Problem: Formalization and Algorithms. IEEE Transactions on Knowledge and Data Engineering 10(5) (1998) 673-685 7. Fan, W., Xue, F.: Optimize Cooperative Agents with Organization in Distributed Scheduling System. in Second International Conference on Intelligent Computing (ICIC 2006), Kunming, China, 2006. D.-S. Huang, K. Li, and G.W. Irwin (Eds.): Lecture Notes in Artificial Intelligence 4114 (2006) 502-509 8. Xing, J., Liu, S., Fan, W., Ji, L.: Design of Airport Ground Service System Based on Multi-Agent. Journal of Civil Aviation University of China. 24(3) (2006) 24–27 (in Chinese) 9. Stützle, T., Hoos, H.: The MAX -MIN Ant System and Local Search for The Traveling Salesman Problem. In Proceedings of the Fourth International Conference on Evolutionary Computation (ICEC’97), IEEE Press. (1997) 308-313 1204 F. Xue and W. Fan 10. Stützle, T., Hoos, H.: Improvements on the Ant System: Introducing MAX –MIN Ant system. In Proceedings of the International Conference on Artificial Neural Networks and Genetic Algorithms, Springer Verlag, Wien. (1997) 245-249 11. Fan, W., Zhang, G., Xue, F.: Design and Implementation of Airline Ground Services Mas Development Platform. In First Conference on Multi-agent Theory and Application, Yantai, China. C. Y. Shi, Z. Z. Shi, et al (Eds.): Journal of Computer Research and Development 43 (s1) (2006) 414-419.