Dynamic hard-real-time scheduling using genetic algorithm for multiprocessor task with resource and timing constraints

https://doi.org/10.1016/j.eswa.2007.10.037Get rights and content

Abstract

Most publications in shop scheduling area focus on the static scheduling problems and seldom take into account the dynamic disturbances such as machine breakdown or new job arrivals. Motivated by the computational complexity of the scheduling problems, genetic algorithms (GAs) have been applied to improve both the efficiency and the effectiveness for NP-hard optimization problems. However, a pure GA-based approach tends to generate illegal schedules due to the crossover and the mutation operators. It is often the case that the gene expression or the genetic operators need to be specially tailored to fit the problem domain or some other schemes may be combined to solve the scheduling problems. This study presents a GA-based approach combined with a feasible energy function for multiprocessor scheduling problems with resource and timing constraints in dynamic real-time scheduling. Moreover, an easy-understood genotype is designed to generate legal schedules. The results of the experiments demonstrate that the proposed approach performs rapid convergence to address its applicability and generate good-quality schedules.

Introduction

The multiprocessor task scheduling problem (MTS) is a generalization of the classical scheduling problem that allows tasks (jobs) to be processed on more than one processor at a time (Drozdowski, 1996). Although MTS problems were motivated mainly by computer systems (Krawczyk & Kubale, 1985). However, Chen and Lee (1999) demonstrated that applications of multiprocessor tasks can also be found in work-force assignment for manufacturing processes. Furthermore, another application of the MTS problem can also be applied in real-time machine-vision systems (Ercan & Fung, 1999). Extensive surveys on the MTS problems were proposed by Drozdowski (1997) and Lee, Lei, and Pinedo (1997). In particular, Brucker, Knust, Roper, and Zinder (2000) and Du and Leung (1989) presented the computational complexity of different MTS problems, and the MTS problems in different shop environments were also demonstrated by Brucker and Kramer, 1995, Brucker and Kramer, 1996.

Because of the complexity of shop scheduling problems, different solution approaches have been developed. Usually, the optimum approach provides optimum solution. When it applies to large problems, the optimum approach can take hours or days to obtain a solution. Wang (2005) concluded that the branch and bound solution method is an exact method, which provides optimal solution. One major limitation is that the branch and bound method is computationally expensive and impractical for even modestly sized problems. Thus, heuristics are the most common approach to shop scheduling problems because of the low computational requirements. However, heuristics have difficulty in measuring solution quality (optimal or near optimal). Therefore, adaptive search approaches have been implemented to generate good-quality schedules in a reasonable time. Chen and Huang, 2001a, Huang and Chen, 1999 proposed an energy function for the Hopfield neural network (HNN) to schedule multiprocessor job with resource and timing constraints. Subsequently, they integrated fuzzy c-means clustering strategies into a Hopfield neural network to solve scheduling problems (Chen & Huang, 2001b). More recently, Chen, Lo, and Huang (2007) also proposed the competitive Hopfield neural network with slack neurons to solve real time job scheduling problem with processing time and deadline constraints. Furthermore, Lo, Chen, Huang, and Wu (2007) proposed an enchanced ant colony optimization (ACO) approach for the multiprocessor scheduling problems with precedence and resource constraints.

Recently, there are several types of artificial intelligence (AI) search techniques in solving optimization problems: neural networks, genetic algorithm, tabu search and simulated annealing. Most AI search approaches try to find a better solution or escape from a local optimal to obtain the globally better solution. AI search techniques, such as genetic algorithms (GAs), have shown the feasibility to solve the job-shop scheduling problems. Correa, Ferreira, and Rebreyend (1999) proposed a knowledge-augmented genetic approach to schedule multiprocessor tasks. Hajri, Liouane, Hammadi, and Borne (2000) presented a controlled GA based on fuzzy logic and belief functions to solve job-shop scheduling problems. Dorndorf and Pesch (1995) also presented a GA approach for job-shop environment. Some applications of multiprocessor task using the GA approach can also be found for manufacturing activities (Oğuz and Ercan, 2005, Şerifoğlu and Ulusoy, 2004). Chang, Chen, and Lin (2005) applied a two-phase subpopulation GA approach to solve parallel machine-scheduling problems. Moreover, Yang (2001) developed a GA-based discrete dynamic programming approach for scheduling in flexible manufacturing system (FMS) environments. However, a pure GA-based approach tends to produce illegal schedules due to the crossover and the mutation operators, therefore, the gene expression or the genetic operators need to be specially designed or some other schemes may be combined to solve the scheduling problems.

For the shop scheduling problems such as flow-shop, job-shop, open-shop and mixed-shop, most of the existing research focuses on the static conditions and seldom take into consideration dynamic disturbances such as machine breakdown and new job arrivals (Liu, Ong, & Ng, 2005). In the following, some research works related to dynamic shop scheduling are reviewed. Holloway and Nelson (1974) initially implemented a multi-pass procedure in a dynamic job-shop environment by generating schedules periodically. Subsequently, Muhleman, Lockett, and Farn (1982) analyzed the periodic scheduling policy in a dynamic and stochastic job-shop system. In addition, Church and Uzsoy (1992) considered periodic and event-driven rescheduling approaches in a single machine system with dynamic job arrivals. Subramaniam, Lee, Ramesh, Hong, and Wong (2000) also demonstrated that the performance of dispatching in a dynamic job-shop could be improved significantly through the simple machine selection rule.

To the best of our knowledge, no published work deals with the MTS problem with resource and timing constraints in dynamic real-time scheduling. This study focuses on dynamic real-time scheduling in the event of new job arrivals for the MTS problem. To explore the effectiveness, a GA-based approach with a feasible energy function and an easy-understood genotype is proposed to generate legal and good-quality schedules. An energy function designed to illustrate the timing and resource constraints is proposed as in Huang and Chen (1999).

The rest of the study is organized as follows. Section 2 describes the problem definition. The energy function of the scheduling problem is defined in Section 3. Next, the genetic algorithms are reviewed and the energy function is translated into the fitness function in Section 4. The mathematical proof of the convergence of the energy function is then illustrated in Section 5. The simulation examples and experimental results are presented in Section 6. Finally, concluding remarks of this study are made in Section 7.

Section snippets

Problem definition

The scheduling problem domain to be considered in this study is defined as follows. Suppose there are N jobs, each of which can be segmented, and there are M processors that are capable of performing the operations of all jobs. Each job i (i = 1, 2, 3,  , N) has an integer processing time PTi and the deadline di. The PTi can be estimated by calculating the processor cycles. Some assumptions in this study are described as follows.

  • 1.

    All processors and all jobs are available from time zero.

  • 2.

    Different

Energy function of the scheduling problem

According to the previous section, these assumptions and constraints are quite feasible. Given these assumptions, the preemptive processes with deadlines and limited numbers of non-preemptive resources are interesting. To solve this scheduling problem, the energy function of the problem regarding all constraints must first be derived. Moreover, there are three variables involved in this scheduling, which are job, processor and time. The “job” variable i represents a job with a range from 1 to N

Genetic algorithm and its implementation

The genetic algorithms (GAs) have been applied to improve both the efficiency and the effectiveness for NP-hard optimization problems. Unlike other AI approaches such as simulated annealing, which processes a single point of the search space, GAs start with an initial set of random solutions called population (Holland, 1992, Michalewicz, 1999). Each individual in the population is called a chromosome, representing a solution to the problem. A new generation is generated by applying the genetic

Convergence of the energy function

The defined energy function dominates the convergence during the iteration. In this section, Eq. (5) is proven to be an appropriate Lyapunov function. Hence, the convergence is assured. Eq. (5) consists of two parts, one containing a state Vlmn using resource f and the other containing the rest of the states. Thus, Vlmn = 1 indicates a situation in which processor m processes job l at time n using resource f. Contrarily, Vlmn = 0 refers to that job l is neither executed on processor m nor utilizes

Simulation examples and experimental results

To verify the effectiveness of the proposed approach, the simulations involved three experimental groups of scheduling problems. The number of jobs is taken to be N = 10 and the number of processors M = 3 in the first and the second experimental groups. The third experimental group considers N = 20 and M = 5. Four different resource types were available in the first and the second experimental groups, while the third experimental group involved five resource types. For each one of the three

Conclusions and analysis

For the shop scheduling problems such as flow-shop, job-shop, open-shop and mix-shop, most of the existing research focuses static conditions and seldom take into consideration dynamic disturbances such as new job arrivals. This study illustrated a GA-based approach to mapping the problem constraint into the energy function that solves the MTS problem with resource and timing constraints in dynamic real-time scheduling. A pure GA-based approach tends to generate illegal schedules due to the

References (30)

  • R.M. Chen et al.

    Multiprocessor task assignment with fuzzy hopfield neural network clustering technique

    Neural Computing and Applications

    (2001)
  • L.K. Church et al.

    Analysis of periodic and event-driven rescheduling policies in dynamic shops

    International Journal of Computer Integrated Manufacturing

    (1992)
  • R.C. Correa et al.

    Scheduling multiprocessor tasks with genetic algorithms

    IEEE Transactions on Parallel and Distributed Systems

    (1999)
  • Drozdowski, M. (1997). Selected problems of scheduling tasks in multiprocessor computer systems. Monograph No. 321,...
  • J. Du et al.

    Complexity of scheduling parallel task systems

    SIAM Journal on Discrete Mathematics

    (1989)
  • Cited by (33)

    • Agent-based hybrid tabu-search heuristic for dynamic scheduling

      2023, Engineering Applications of Artificial Intelligence
    • On arrival scheduling of real-time precedence constrained tasks on multi-processor systems using genetic algorithm

      2019, Future Generation Computer Systems
      Citation Excerpt :

      One of the very early and significant considerations of GA for dynamic load balancing and scheduling was by Zomya et al. [16], which projected better result than first fit heuristic approach. In [17], Cheng et al. presented a GA based approach for dynamic real-time multiprocessor scheduling problem considering the resource and time constraints with a feasible energy function. Ma et al. [18] implemented an improved dynamic version of GA to address the dynamic task scheduling problem in cloud computing to enhance its performance.

    • Multi-objective kernel mapping and scheduling for morphable many-core architectures

      2016, Expert Systems with Applications
      Citation Excerpt :

      The new optimization framework that is herein proposed represents a considerable extension of other MOO design approaches that have been presented in the literature to optimize highly heterogeneous many-core processing systems. Some examples of related contributions comprise: code optimization (Balaprakash, Tiwari, & Wild, 2014; Neugebauer, Marwedel, & Engel, 2015); static and dynamic task scheduling (Behnamian, Zandieh, & Ghomi, 2009; Camelo, Donoso, & Castro, 2011; Cheng, Shiau, Huang, & Lin, 2009; Daoud & Kharma, 2011; Sheikh & Ahmad, 2013; Xu, Li, Hu, & Li, 2014); and a number of DSE approaches based on high-level and system-level synthesis (Erbas, Cerav-Erbas, & Pimentel, 2006; Gschwandtner, Durillo, & Fahringer, 2014; Holzer, Knerr, & Rupp, 2007; Krishnan & Katkoori, 2006), application mapping in multi-processor systems (Mariani et al., 2010; Palermo, Silvano, & Zaccaria, 2009) and heterogeneous systems (Erbas, Erbas, & Pimentel, 2003), as well as routing and communication topology optimizations (Glaß, Lukasiewycz, Wanka, Haubelt, & Teich, 2008). However, although some of these solutions already target morphable processing architectures, they do not take advantage of the runtime reconfiguration/adaptation capabilities of the underlying hardware support.

    • Optimisation of partner selection and collaborative transportation scheduling in Virtual Enterprises using GA

      2014, Expert Systems with Applications
      Citation Excerpt :

      GA is the best candidate for this problem as it is very versatile in chromosome encoding and genetic operations. There have been a number of research studies in which GAs with dynamic chromosome representations and/or genetic operations have been proposed (Chen & Ji, 2007; Cheng, Shiau, Huang, & Lin, 2009; Cheng, Yang, & Cao, 2013; Dao & Marian, 2011a, 2011b, 2011c, 2013). However, there is no GA working best for every optimisation problem and customisations in chromosome encoding and genetic operations are always required.

    View all citing articles on Scopus
    View full text