Full text
Nature Inspired Meta-heuristics for Grid Scheduling: Single and Multi-objective Optimization Approaches Ajith Abraham1,HongboLiu 2,3 ,CrinaGrosan 4 ,andFatosXhafa 5 1Centre for Quantifiable Quality of Service in Communication Systems, Norwegian University of Science and Technology, NO-7491 Trondheim, Norway [email protected] http://www.softcomputing.net 2School of Computer Science and Engineering, Dalian Maritime University, 116026 Dalian, China 3Department of Computer, Dalian University of Technology, 116023 Dalian, China [email protected] 4Department of Computer Science, Faculty of Mathematics and Computer Science, Babe¸sBolyaiUniversity,Kogalniceanu1,Cluj-Napoca,3400,Romania [email protected] 5Dept. de Llenguatges i Sistemes Inform`atics Universitat Polit`ecnica de Catalunya C/Jordi Girona 1-3, 08034 Barcelona, Spain [email protected] Summary. In this chapter, we introduce several nature inspired meta-heuristics for scheduling jobs on computational grids. Our approach is to dynamically generate an optimal schedule so as to complete the tasks in a minimum period of time as well as utilizing the resources in an efficient way. We evaluate the performance of Genetic Algorithm (GA), Simulated Annealing (SA), Ant Colony optimization (ACO) and Particle Swarm Optimization (PSO) Algorithm. Finally, the usage of Multi-objective Evolutionary Algorithm (MOEA) for two scheduling problems are also illustrated. Keywords: Nature Inspired Meta-heuristics, Multi-objective Optimization, Job Scheduling, Grid Computing, Genetic Algorithms, Simulated Annealing, Ant Colony, Particle Swarm Optimization. 1Introduction Acomputationalgridisalargescale,heterogeneouscollectionofautonomous systems, geographically distributed and interconnected by low latency and high bandwidth networks [1]. The sharing of computational jobs is a major application of grids. Grid resource management provides functionality for discovery and publishing of resources as well as scheduling, submission and monitoring of jobs. However, computing resources are geographically distributed under different ownerships each having their own access policy, cost and various constraints. Every Abraham, A. [et al.]. Nature inspired meta-heuristics for grid scheduling: single and multi-objective optimization approaches. A: "Metaheuristics for scheduling in distributed computing environments". Springer, 2008, p. 247-272. The final authenticated version is available online at https://doi.org/10.1007/978-3-540-69277-5
resource owners will have a unique way of managing and scheduling resources and the grid schedulers are to ensure that they do not conflict with resource owner’s policies. In the worst-case situation, the resource owners might charge different prices to different grid users for their resource usage and it might vary from time to time. The job schedule problem is known to be NP-complete [2]. Recently several metaheuristics were introduced to minimize the average completion time of jobs through optimal job allocation on each grid node in application-level scheduling [3], [4]. Because of the intractable nature of the problem and its importance in grid computing, it is desirable to explore other avenues for developing good heuristic algorithms for the problem. Particularly, with its sound exploration ability both global and local, some new search techniques, nature inspired meta-heuristics, has become the new focus of research. In this chapter, we introduce several nature inspired meta-heuristics for scheduling jobs on computational grids. The nature inspired meta-heuristics involved are Genetic Algorithm (GA), Simulated Annealing (SA), Ant Colony optimization (ACO) and Particle Swarm Optimization (PSO) Algorithm. The PSO approach for scheduling jobs on computational grids is based on fuzzy matrices to represent the position and velocity of the particles in PSO [5], in which a new mapping between the job scheduling problem and the particle is constructed [13]. The approach is to dynamically generate an optimal schedule so as to complete the tasks in a minimum period of time as well as utilizing the resources in an efficient way. We also illustrate the use of Multi-objective evolutionary algorithms for job scheduling [7]. TheChapterisorganizedasfollows.Section2dealswithsometheoretical foundationsrelatedtojobscheduling.VariousnatureinspiredheuristicsareintroducedinSection3.InSection4,experimentresultsanddiscussionsare provided.FinallyweconcludeourworkinSection5. 2SchedulingProblemFormulation In the grid environment, there is usually a general framework focusing on the interaction between grid resource broker, domain resource manager and the grid information server [8]. Usually it is easy for the grid to get information about the speed of the available grid nodes but quite complicated to know the computational processing time requirements from the user. To conceptualize the problem as an algorithm, we need to dynamically estimate the job lengths from user application specifications or historical data. For clarity purposes, some key terminologies are defined as follows: •Grid Node (computing unit) Grid node is a set of computational resources with limited capacities. It may be a simple personal machine, a workstation, a super-computer, or a cluster of workstations in the grid environment. The computational capacity of the node depends on its number of CPUs, amount of memory, basic storage space and other specializations. In other words, each node has its own processing speed, which can be expressed in number of Cycles Per Unit Time (CPUT).
•Jobs and Operations Ajobisconsideredasasinglesetofmultipleatomicoperations/tasks.Each operation will be typically allocated to execute on one single node without preemption. It has input and output data, and processing requirements in order to complete its task. The operation has the processing length expressed in number of cycles. •Schedule and Scheduling Problem AscheduleisthemappingofthetaskstospecifictimeintervalsofGrid nodes. A scheduling problem is specified by a set of machines, a set of jobs/operations, optimality criteria, environmental specifications, and by other constraints. To formulate the problem, we consider Jj(j∈{1,2,···,n})independent user jobs on Gi(i∈{1,2,···,m}) heterogeneous grid nodes with an objective of minimizing the completion time and utilizing the nodes effectively. The speed of each node is expressed in number of CPUT, and the length of each job in number of cycles. Each job Jjhas its processing requirement (cycles) and the node Gihas its calculating speed (cycles/second). Any job Jjhas to be processed in the one of grid nodes Gi,untilcompletion.Sinceallnodesateachstageare identical and preemptions are not allowed, to define a schedule it suffices to specify the completion time for all tasks comprising each job. To formulate our objective, define Ci,j (i∈{1,2,···,m},j∈{1,2,···,n}) as the completion time that the grid node Gifinishes the job Jj,!Cirepresents the time that the grid node Gifinishes all the jobs scheduling to itself. Define Cmax =max{!Ci}as the makespan, and !m i=1(!Ci)astheflowtime. An optimal schedule will be the one that optimizes the flowtime and makespan. The conceptually obvious rule to minimize !m i=1(!Ci)istoscheduleShortest Job on the Fastest Node (SJFN). The simplest rule to minimize Cmax is to schedule the Longest Job on the Fastest Node (LJFN). Minimizing !m i=1(!Ci) asks the average job finishes quickly, at the expense of the largest job taking alongtime,whereasminimizingCmax,asksthatnojobtakestoolong,atthe expense of most jobs taking a long time. Minimization of Cmax will result in maximization of !m i=1(!Ci). 3NatureInspiredMeta-heuristics Combinatorial optimizationproblems are important in many real life applications and recently, the area has attracted much research with the advances in nature inspired heuristics and multi-agent systems. For scheduling problems, the dramatic increase in the size of the search space and the need for real-time solutions motivated researchideas into solving scheduling problems using nature inspired heuristic techniques. In this Chapter, we included evolutionary algorithms, simulated annealing, ant colony optimization and particle swarm optimization algorithm. The generic pseudo-code for the algorithms is illustrated in Algorithm 9.1.
Algorithm1.GeneralDescriptionforNatureInspiredAlgorithm 01. Initialize the solution vectors randomly and other parameters. 02. Evaluate the candidate solution(s); 03. Repeat 04. Generate new candidate solutions following the nature or social behaviors; 05. Evaluate the candidate solution; 06. Until terminating criteria. The termination criteria are usually one of the following: •Maximum number of iterations: the optimization process is terminated after afixednumberofiterations,forexample,1000iterations. •Number of iterations without improvement: the optimization process is terminated after some fixed number of iterations without any improvement. •Minimum objective function error: the error between the obtained objective function value and the best fitness value is less than a pre-fixed anticipated threshold. •Cost threshold: allocated budget (computation time/cost) reached. •Manual inspection: the process is executed by human-computer interactively. •Combinations of the above. 3.1EvolutionaryAlgorithms In nature, evolution is mostly determined by natural selection, where individuals that are better are more likely to survive and propagate their genetic material. The encoding of genetic information (genome) is done in a way that admits asexual reproduction which results in offspring’s that are genetically identical to the parent. Sexual reproduction allows some exchange and re-ordering of chromosomes, producing offspring that contain a combination of information from each parent. This is the recombination operation, which is often referred to as crossover because of the way strands of chromosomes crossover during the exchange. Diversity in the population is achieved by mutation. A typical evolutionary (genetic) algorithm procedure takes the following steps: A population of candidate solutions (for the optimization task to be solved) is initialized. New Algorithm2.EvolutionaryAlgorithm 01. Initialize the population randomly, and other parameters. 02. Evaluate the fitness of each individual in the population. 03. Repeat 04. Select best-ranking individuals to reproduce; 05. Breed new generation through crossover operator and give birth to offspring; 06. Breed new generation through mutation operator and give birth to offspring; 07. Evaluate the individual fitness of the offspring; 08. Replace worst ranked part of population with offspring; 09. Until terminating criteria.
solutionsarecreatedbyapplyinggeneticoperators(mutationand/orcrossover). Thefitness(howgoodthesolutionsare)oftheresultingsolutionsareevaluated andsuitableselectionstrategyisthenappliedtodeterminewhichsolutionswill bemaintainedintothenextgeneration.Theprocedureistheniterated[9].A canonicalversionofthepseudo-codefortheevolutionaryalgorithmisillustrated inAlgorithm2. .3.2EvolutionaryMulti-objectiveOptimization Even though some real world problems can be reduced to a matter of single objective very often it is hard to define all the aspects in terms of a single objective. Defining multiple objectives often gives a better idea of the task. In single objective optimization, the search space is often well defined. As soon as there are several possibly contradicting objectives to be optimized simultaneously, there is no longer a single optimal solution but rather a whole set of possible solutions of equivalent quality. When we try to optimize several objectives at the same time the search space also becomes partially ordered. To obtain the optimal solution, there will be a set of optimal trade-offs between the conflicting objectives. A multiobjective optimization problem is defined by a function fwhich maps a set of constraint variables to a set of objective values. Asolutioncouldbebest,worstandalsoindifferenttoothersolutions(neither dominating or dominated) with respect to the objective values. Best solution means a solution not worst in any of the objectives and at least better in one objective than the other. An optimal solution is the solution that is not dominated by any other solution in the search space. Such an optimal solution is called Pareto optimal and the entire set of such optimal trade-offs solutions is called Pareto optimal set. As evident, in a real world situation a decision making (trade-off) process is required to obtain the optimal solution. Even though there are several ways to approach a multiobjective optimization problem, most work is concentrated on the approximation of the Pareto set. Evolutionary algorithm is characterized by a population of solution candidates and the reproduction process enables to combine existing solutions to generate new solutions. Finally, natural selection determines which individuals of the current population participate in the new population. Multi-objective Evolutionary Algorithms (MOEA) can yield a whole set of potential solutions, which are all optimal in some sense. After the first pioneering work on multiobjective evolutionary optimization in the eighties [10], several different algorithms have been proposed and successfully applied to various problems. For comprehensive overviews and discussions, the reader is referred to [11]. 3.3SimulatedAnnealing Simulated Annealing (SA) exploits an analogy between the way in which a metal cools and freezes into a minimum energy crystalline structure (the annealing process) and the search for a minimum in a more general system. SA’s major advantage over other methods is an ability to avoid becoming trapped at local
minima [12]. The annealing schedule, i.e., the temperature-decreasing rate used in SA is an important factor, which affects SA’s rate of convergence. The algorithm employs a random search, which not only accepts changes that decrease objective function “f”, but also some changes that increase it. The latter are accepted with a probability p=exp "−δf T#,whereδfis the increase in objective function, and “f”andTare control parameters. Several SAs have been developed with annealing schedule inversely linear in time (Fast SA), exponential function of time (Very Fast SA) etc. We explain a SA algorithm [13], which is exponentially faster than Very Fast SA whose annealing schedule is given by T(k)= T0 exp(ek),whereT0 is the initial temperature, T(k)isthetemperature we wish to approach to zero for k=1,2,....Ifthegenerationfunctionofthe simulated annealing algorithm is represented as: gk(Z)= D $ i=1 gk(zi)= D $ i=1 1 2(|zi|+1 ln(1/Ti(k)) )ln(1+ln(1/T i(k))) (1) where Ti(k)is the temperature in dimension iat time k.Thegenerationprobability will be represented by Gk(Z)=%z1 −1%z2 −1 ..... %zD −1 gk(Z)dz1dz2....dzD= D $ i=1 Gki(zi)(2) where Gki(zi)=1 2+sgn(zi)ln(1+|zi|ln(1/Ti(k))) 2ln(1+ln(1/Ti(k))) It is straightforward to prove that an annealing schedule for Ti(k)=T0iexp(−exp(bik1/D)) (3) Aglobalminimum,statistically,canbeobtained.Thatis, ∞ & k=ko gk=∞(4) Algorithm3.SimulatedAnnealing 01. Set initial temperature T0 ,andotherparameters. 02. Initialize the solution vectors randomly. 03. Repeat 04. Counter = 0; 05. Repeat 06. Evaluate the candidate solution; 07. Generate a neighbor and evaluate the cost of the neighbor solution; 08. Accept or reject the neighbor with a probability p; 09. Counter++; 10. Until (Counter = Number of Iterations at Ti); 11. Ti+1 =c∗Ti(temperature reduction); 12. Until terminating criteria.
wherebi>0isaconstantparameterandk0isasufficientlylargeconstantto satisfyEq.(.4),ifthegenerationfunctioninEq.(.1)isadopted.ThepseudocodeforsimulatedannealingisillustratedinAlgorithm.3. .3.4AntColonyOptimization In nature, ants usually wander randomly, and upon finding food return to their nest while laying down pheromone trails. If other ants find such a path (pheromone trail), they are likely not to keep traveling at random, but to instead follow the trail, returning and reinforcing it if they eventually find food. However, as time passes, the pheromone starts to evaporate. The more time it takes for an ant to travel down the path and back again, the more time the pheromone has to evaporate (and the path to become less prominent). A shorter path, in comparison will be visited by more ants (can be described as a loop of positive feedback) and thus the pheromone density remains high for a longer time. ACO is implemented as a team of intelligent agents which simulate the ants behavior, walking around the graph representing the problem to solve using mechanisms of cooperation and adaptation. ACO algorithm requires to define the following [14], [15]: •The problem needs to be represented appropriately, which would allow the ants to incrementally update the solutions through the use of a probabilistic transition rules, based on the amount of pheromone in the trail and other problem specific knowledge. It is also important to enforce a strategy to construct only valid solutions corresponding to the problem definition. •Aproblem-dependentheuristicfunctionηthat measures the quality of components that can be added to the current partial solution. •Arulesetforpheromoneupdating,whichspecifieshowtomodifythe pheromone value τ. •Aprobabilistictransitionrulebasedonthevalueoftheheuristicfunctionη and the pheromone value τthat is used to iteratively construct a solution. ACO was first introduced using the Traveling Salesman Problem (TSP). Starting from its start node, an ant iteratively moves from one node to another. When being at a node, an ant chooses to go to a unvisited node at time twith a probability given by pk i,j (t)= [τi,j (t)]α[ηi,j (t)]β !l∈Nk i[τi,j(t)]α[ηi,j (t)]βj∈Nk i(.5) where Nk iis the feasible neighborhood of the antk, that is, the set of cities which antkhas not yet visited; τi,j (t)isthepheromonevalueontheedge(i, j)atthe time t,αis the weight of pheromone; ηi,j (t)isaprioriavailableheuristicinformation on the edge (i, j)atthetimet,βis the weight of heuristic information. Two parameters αand βdetermine the relative influence of pheromone trail and heuristic information. τi,j (t)isdeterminedby
τi,j(t)=ρτi,j (t−1) + n & k=1 ∆τk i,j (t)∀(i, j)(.6) ∆τk i,j (t)='Q Lk(t)if the edge (i, j)chosenbytheantk 0otherwise (.7) where ρis the pheromone trail evaporation rate (0 <ρ<1), nis the number of ants, Qis a constant for pheromone updating. Reader is advised to consult [16], [17], [15] for more technical details and other applications of ACO. A generalized version of the pseudo-code for the ACO algorithm with reference to the TSP is illustrated in Algorithm 9.4. Algorithm.4.AntColonyOptimizationAlgorithm 01. Initialize the number of ants n,andotherparameters. 02. Repeat 03. t++; 04. For k=1ton 05. antkis positioned on a starting node; 06. For m=2toproblem size 07. Choose the state to move into 07. according to the probabilistic transition rules; 08. Append the chosen move into tabuk(t)fortheantk; 09. Next m 10. Compute the length Lk(t)ofthetourTk(t)chosenbytheantk; 11. Compute ∆τi,j (t)foreveryedge(i, j)inTk(t)accordingtoEq.(9.7); 12. Next k 13. Update the trail pheromone intensity for every edge (i, j)accordingtoEq.(9.6); 14. Compare and update the best solution; 15. Until terminating criteria. .3.5ParticleSwarmOptimization Particle swarm algorithm is inspired by social behavior patterns of organisms that live and interact within large groups. In particular, it incorporates swarming behaviors observed in flocks of birds, schools of fish, or swarms of bees, and even human social behavior, from which the Swarm Intelligence (SI) paradigm has emerged [11], [12]. It could be implemented and applied easily to solve various function optimization problems, or the problems that can be transformed to function optimization problems. As an algorithm, its main strength is its fast convergence, which compares favorably with many global optimization algorithms [9], [12]. The canonical PSO model consists of a swarm of particles, which are initialized with a population of random candidate solutions. They move iteratively through the d-dimension problem space to search the new solutions, where the fitness, f,canbecalculated as the certain qualities measure.
Each particle has a position represented by a position-vector xi(iis the index of the particle), and a velocity represented by a velocity-vector vi.Eachparticle remembers its own best position so far in a vector x# i,anditsj-th dimensional value is x# ij .Thebestposition-vectoramongtheswarmsofaristhenstored in a vector x∗,anditsj-th dimensional value is x∗ j.Duringtheiterationtime t,theupdateofthevelocityfromthepreviousvelocitytothenewvelocityis determinedbyEq.(.8).Thenewpositionisthendeterminedbythesumofthe previouspositionandthenewvelocitybyEq.(.9). vij(t+1)=wvij (t)+c1r1(x# ij (t)−xij (t)) + c2r2(x∗ j(t)−xij (t)).(.8) xij (t+1)=xij (t)+vij (t+1).(.9) where wis called as the inertia factor, r1and r2are the random numbers, which are used to maintain the diversity of the population, and are uniformly distributed in the interval [0,1] for the j-th dimension of the i-th particle. c1is apositiveconstant,calledascoefficientoftheself-recognitioncomponent,c2is apositiveconstant,calledascoefficientofthesocialcomponent. FromEq.(.8),aparticledecideswheretomovenext,consideringitsown experience,whichisthememoryofitsbestpastposition,andtheexperience ofitsmostsuccessfulparticleintheswarm.Intheparticleswarmmodel,the particlesearchesthesolutionsintheproblemspacewitharange[−s,s](Ifthe rangeisnotsymmetrical,itcanbetranslatedtothecorrespondingsymmetrical range.)Inordertoguidetheparticleseffectivelyinthesearchspace,themaximummovingdistanceduringoneiterationmustbeclampedinbetweenthe maximumvelocity[−vmax,vmax]giveninEq.(.10): vij =sign(vij)min(|vij |,v max).(.10) xi,j =sign(xi,j)min(|xi,j |,x max).(.11) Thevalueofvmaxisp×s,with0.1≤p≤1.0andisusuallychosentobes,i.e. p=1.Thepseudo-codeforparticleswarmoptimizationalgorithmisillustrated inAlgorithm.5. Theroleofinertiaweightw,inEq.(.8),isconsideredcriticalfortheconvergencebehaviorofPSO.Theinertiaweightisemployedtocontroltheimpactof theprevioushistoryofvelocitiesonthecurrentone.Accordingly,theparameter wregulatesthetrade-offbetweentheglobal(wide-ranging)andlocal(nearby) explorationabilitiesoftheswarm.Alargeinertiaweightfacilitatesglobalexploration(searchingnewareas),whileasmallonetendstofacilitatelocalexploration,i.e.fine-tuningthecurrentsearcharea.Asuitablevaluefortheinertia weightwusuallyprovidesbalancebetweenglobalandlocalexplorationabilities andconsequentlyresultsinareductionofthenumberofiterationsrequiredto locatetheoptimumsolution.Initially,theinertiaweightissetasaconstant. However,someexperimentresultsindicatesthatitisbettertoinitiallysetthe inertiatoalargevalue,inordertopromoteglobalexplorationofthesearch space,andgraduallydecreaseittogetmorerefinedsolutions[20],[21].Thus,an
Table.1.Parametersettingsforthealgorithms Algorithm Parameter name Parameter value Size of the population 20 Probability of crossover 0.8 GA Probability of mutation 0.02 Scale for mutations 0.1 Number operations before temperature adjustment 20 Number of cycles 10 SA Temperature reduction factor 0.85 Vector for control step of length adjustment 2 Initial temperature 50 Swarm size 20 Self-recognition coefficient c11.49 PSO Social coefficient c21.49 Inertia weight w0.9→0.1 Table.2.Anoptimalschedulefor(3,13) Job Grid Node J1J2J3J4J5J6J7J8J9J10 J11 J12 J13 G10010001101 0 0 1 G21001100010 1 0 0 G30100010000 0 1 0 Table.3.PerformancecomparisonbetweenGA,PSOandSA Instance Algorithm Item (3,13) (5,100) (8,60) (10,50) Average makespan 47.1167 85.7431 42.9270 38.0428 GA Standard Deviation ±0.7700 ±0.6217 ±0.4150 ±0.6613 Time 302.9210 2415.9 2263.0 2628.1 Average makespan 46.6000 90.7338 55.4594 41.7889 SA Standard Deviation ±0.4856 ±6.3833 ±2.0605 ±8.0773 Time 332.5000 6567.8 6094.9 6926.4 Average makespan 46.2667 84.0544 41.9489 37.6668 PSO Standard Deviation ±0.2854 ±0.5030 ±0.6944 ±0.6068 Time 106.2030 1485.6 1521.0 1585.7 Table.4.Runtimeperformancecomparisonforlargedimensionproblems (G,J)PSOGA (60,100) 1721.1 1880.6 100,1000) 3970.80 5249.80
0500 1000 1500 2000 46 47 48 49 50 51 52 53 54 55 Makespan GA SA PSO Iteration Fig..2.Performanceforjobscheduling(3,13) 0 0.5 1 1.5 2 2.5 x 104 35 40 45 50 55 60 65 Makespan GA SA PSO Iteration Fig..3.Performanceforjobscheduling(5,100) Further,weconsideredthethreealgorithmsforotherthree(G,J)pairs,i.e. (5,100),(8,60)and(10,50).Allthejobsandthenodesweresubmittedatone time.Figs..2,.3illustratetheperformanceforGA,SAandPSOalgorithms duringthesearchprocessfor(3,13),(5,100)respectively.Theaveragemakespan
0 2 4 6 8 10 12 x 1 0 4 0 50 100 150 200 250 300 350 Makespan GA PSO Iteration Fig..4.Performanceforjobscheduling(60,500) 00.5 11.5 22.5 x 105 0 100 200 300 400 500 600 Makespan GA PSO Iteration Fig..5.Performanceforjobscheduling(100,1000) values,thestandarddeviationsandthetimefor10trialsareillustratedin Table.3.AlthoughtheaveragemakespanvalueofSAwasbetterthanthatof GAfor(3,13),thecasewasreversedforbiggerproblemsizes.PSOusuallyhad betteraveragemakespanvaluesthantheothertwoalgorithms.Themakespan
results of SA seemed to depend on the initial solutions extremely. Although the best values in the ten trials for SA were not worse than other algorithms, it had larger standard deviations. For SA, there were some “bad” results in the ten trials, so the averages were the largest. In general, for larger (G, J)pairs,thetime was much longer. PSO usually spent the least time to allocate all the jobs on the grid node, GA was the second, and SA had to spent more time to complete the scheduling. It is to be noted that PSO usually spent the shortest time to accomplish the various job scheduling tasks and had the best results among all the considered three algorithms. Itispossiblethat(G,J)islargerthanthedimensionthresholdDT.Weconsideredtwolarge-dimensionsof(G,J),(60,500)and(100,1000)bysubmitting thejobsandthenodesinmulti-stagesconsecutively.Ineachstage,10jobswere allocatedto5nodes,andthesinglenodeflowtimewasaccumulated.TheLJFNSJFNheuristicwasappliedalternativelyafterabatchofjobsandnodeswere allocated.Figs..4,.5andTable.4illustratetheperformanceofGAand PSOduringthesearchprocessfortheconsidered(G,J)pairs. As evident, even thoughtheperformancewerecloseenough,PSOgeneratedtheschedulesmuch fasterthanGAasillustratedinTable.4. .4.2JobSchedulingUsingACO Forillustration,weconsideredtwoprobleminstances:(3,13)and(5,100) [26].TheparametersusedforGA,SAandPSOwerethesameasinTable.1 andtheACOalgorithmparametersareasfollows: Parameter Value Number of ants 5 Weight of pheromone trail α1 Weight of heuristic information β5 Pheromone evaporation parameter ρ0.8 Constant for pheromone updating Q10 Each experiment (for each algorithm) was repeated 10 times with different random seeds. Each trial had a fixed number of 50 ∗m∗niterations (mis the number of the grid nodes, nis the number of the jobs). The makespan values of the best solutions throughout the optimization run were recorded and the averages and the standard deviations were calculated from the 10 different trials. Fig..6illustratestheperformanceofGA,SA,PSOandACOalgorithmsfor (3,13).Theempiricalresultsfor10ACOrunswere{46,46,46,46,46.5,46.5, 46.5,46,46,46.5},withanaveragevalueof46.2667.Theoptimalresultis supposedtobe46.WhileGAprovidedthebestresultstwice,SA,PSO,ACO providedthebestresultsthree,fiveandsixtimesrespectively.Empiricalresults aresummarizedinTable.5for(3,13)and(5,100).Asevident,ACOalgorithm seemstoworkwellbutastheproblemdimensionsgotbigger,thecomputational timealsoincreaseddrastically.
0500 1000 1500 2000 46 47 48 49 50 51 52 53 54 55 56 Makespan GA SA PSO ACO Iteration Fig..6.ACOalgorithmperformancefor(3,13) Table.5.Comparingtheperformanceoftheconsideredalgorithms Instance Algorithm Item (3,13) (5,100) Average makespan 47.1167 85.7431 GA Standard Deviation ±0.7700 ±0.6217 Time 302.9210 2415.9 Average makespan 46.6000 90.7338 SA Standard Deviation ±0.4856 ±6.3833 Time 332.5000 6567.8 Average makespan 46.2667 84.0544 PSO Standard Deviation ±0.2854 ±0.5030 Time 106.2030 1485.6 Average makespan 46.2667 88.1575 ACO Standard Deviation ±0.2854 ±0.6423 Time 340.3750 6758.3 .4.3SchedulingUsingEvolutionaryMulti-objectiveOptimization Approach Instead of considering the objectives involved by using techniques which combines objectives and reduce the problem to a single objective one (as illustrated in the previous Experiment sections), in this Section, we illustrate the use of Pareto dominance concept and all the objectives are considered as independent. Even though several optimization criteria can be considered, we considered a bi-objective minimization problem with the task of minimization of makespan
and flowtime.Themostcommonapproachesofamultiobjectiveoptimization problem use the concept of Pareto dominance as defined below: Pareto Dominance Concept Consider a maximization problem. Let x,ybe two decision vectors (solutions) from the definition domain. Solution xdominatey(also written as x≻y), if and only if the following conditions are fulfilled: (i)fi(x)≥fi(y); ∀i=1,2,..., n; (ii) ∃j∈{1, 2,. . . ,n}:fj(x)>f j(y). That is, a feasible vector xis Pareto optimal if no feasible vector ycan increase some criterion without causing a simultaneous decrease in at least one other criterion. Multi-objective Evolutionary Algorithms (MOEA) can yield a whole set of potential solutions, which are all optimal in some sense. The main challenge in a multiobjective optimization environment is to minimize the distance of the generated solutions to the Pareto set and to maximize the diversity of the developed Pareto set. A good Pareto set may be obtained by appropriate guiding of the search process through careful design of reproduction operators and fitness assignment strategies. To obtain diversification special care has to be taken in the selection process. Special care is also to be taken care to prevent non-dominated solutions from being lost. Solution Representation and Genetic Operators The solution is represented as a string of length equal to the number of jobs. The value corresponding to each position iin the string represent the machine to which job iwas allocated. Consider we have 10 jobs and 3 machines. Then a chromosome and the job allocation is represented as follows: 1 2 3 2 1 1 3 2 1 3 Machine 1: Job1, Job 5, Job 6, Job 9 Machine 2: Job 2, Job 4, Job 8 Machine 3: Job 3, Job 7, Job 10 Mutation and crossover are used as operators and binary tournament selection was used in the implementation. The Pareto dominance concept is used in order to compare 2 solutions. The one which dominates is preferred. In case of nondominance, the solution whose jobs allocation between machines is uniform is preferred. This means, there will not be idle machines as well as overloaded machines. The evolution process is similar to the evolution scheme of a standard evolutionary algorithm for multiobjective optimization. Reader is advised to consult [11] more details about MOEA approach.
Experiment Illustrations Using MOEA Weconsideredtwoschedulinginstances(3,13)and(10,50).Specificparameter settingsforMOEA,SA,PSOandGAaredepictedinTable.6.Eachexperiment wasrepeated10timeswithdifferentrandomseeds.Eachtrial(exceptforMOEA) hadafixednumberof50∗m∗niterations(misthenumberofthegridnodes,n isthenumberofthejobs).Themakespanvaluesofthebestsolutionsthroughout theoptimizationrunwererecorded.Firstwetestedasmallscalejobscheduling probleminvolving3nodesand13jobsrepresentedas(3,13).Thenodespeeds ofthe3nodesare4,3,2CPUT,andthejoblengthof13jobsare6,12,16,20, 24,28,30,36,40,42,48,52,60cycles,respectively.Theresults(makespan)for 10runsareasfollows: Genetic Algorithm: {47, 46, 47, 47.3333, 46, 47, 47, 47, 47.3333, 49},average value = 47.1167 Table.6.Parametersettingsforthedifferentalgorithms Algorithm Parameter name Parameter value Population size 20 Probability of crossover 0.8 GA Probability of mutation 0.02 Scale for mutations 0.1 Number operations before temperature adjustment 20 Number of cycles 10 SA Temperature reduction factor 0.85 Vector for control step of length adjustment 2 Initial temperature 50 Swarm size 20 Self-recognition coefficient c11.49 PSO Social coefficient c21.49 Inertia weight w0.9→0.1 Population size 100 (500 for the second experiment) Number of generations 200 (1000 for the second experiment) MOEA Mutation probability 1 (0.9 for the second experiment) Crossover probability 1 (0.9 for the second experiment) Table.7.Performancecomparisonfor(10,50) Algorithm Average makespan GA 38.04 SA 41.78 PSO 37.66 MOEA 36.68
Fig..7.Makespanfrom31non-dominatedsolutionsinthefinalpopulationfor(10,50) Fig..8.Flowtimefrom31non-dominatedsolutionsinthefinalpopulationfor(10,50) Simulated Annealing: {46.5, 46.5, 46, 46, 46, 46.6667, 47, 47.3333, 47, 47} average value = 46.6 Particle Swarm Optimization Algorithm: {46, 46, 46, 46, 46.5, 46.5, 46.5, 46, 46.5, 46.6667},averagevalue=46.2667 Multi-objective Optimization Algorithm: 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, average value = 46
The optimal result for (3,13) makespan is supposed to be 46 and the MOEA approach gave 46. It is to be noted that the MOEA approach obtained the best results in each of the considered runs. Further,wetestedtheMOEAapproachfor(10,50).Theaveragemakespan valuesfor10trialsareillustratedinTable.7.Althoughtheaveragemakespan valueofSAwasbetterthanthatofGAfor(3,13),thecasewasreversedforthis secondcase.UsingtheMOEAapproach,thetotalaverageflowtimeobtainedis= 348.07.Fig .7and.4.3illustratethemakespanandflowtimegivenby31 non-dominatedsolutionsfromthefinalpopulation.Theuserwouldhavethe optiontogoforabetterflowtimesolutionattheexpenseofanon-optimal makespan.Asevidentfromthefigure,thelowestflowtimewas343.72withthe makespanof44.75forsolutionno.27. Asevidentfromtheempiricalresults,MOEAhavegivenexcellentresults whencomparedtoothertechniquesmodeledusingasingleobjectiveapproach. Figs..7and.4.3illustratethemakespanandflowtimegivenby31nondominatedsolutionsfromthefinalpopulation.Theuserwouldhavetheoption togoforabetterflowtimesolutionattheexpenseofanon-optimalmakespan. AsevidentfromtheFigs..7and.4.3,thelowestflowtimewas343.72with themakespanof44.75forsolutionno.27.Byseeingthepopulationofsolutions asillustratedinFigs..7and.4.3,theuserwillhavetheoptiontochoosea particularscheduledependingontheimportanceoftheobjectives.Forexample, theusercangivemorepreferencetoaschedulewhichcouldofferaminimal flowtimebutnotanoptimalmakespan,etc. .5Conclusions In this Chapter, we illustrated the usage of several nature inspired metaheuristics for scheduling jobs. Our approach was to dynamically generate an optimal schedule so as to complete the tasks in a minimum period of time as well as utilizing the resources in an efficient way. We evaluated the performance of the heuristic approaches using a single and multi-objective optimization approaches. Empirical results clearly illustrate the success of nature inspired heuristics in providing real-time good solutions especially when the search space is very huge. Our experiments also illustrate the importance and benefits of considering the objectives separately (multi-objective optimization approach) rather than combining them for the sake of simplicity. Acknowledgments F. Xhafa acknowledges partial support by Projects ASCE TIN2005-09198- C02-02, FP6-2004-ISO-FETPI (AEOLUS) and MEC TIN2005-25859-E and FORMALISM TIN2007-66523.
References 1. Foster, I., Kesselman, C.: The Grid: Blueprint For A New Computing Infrastructure. Morgan Kaufmann, USA (2004) 2. Garey, M.R., Johnson, D.S.: Computers and Intractability: A Guide to the Theory of NP-Completeness. Freeman, CA (1979) 3. Martino, V.D., Mililotti, M.: Sub optimal scheduling in a grid using genetic algorithms. Parallel Computing 30, 553–565 (2004) 4. Gao, Y., Rong, H.Q., Huang, J.Z.: Adaptive Grid Job Scheduling With Genetic Algorithms. Future Generation Computer Systems 21, 151–161 (2005) 5. Pang, W., Wang, K.P., Zhou, C.G., et al.: Fuzzy discrete particle swarm optimization for solving traveling salesman problem. In: Proceedings of the 4th International Conference on Computer and Information Technology. IEEE CS Press, Los Alamitos (2004) 6. Abraham, A., Liu, H., Zhang, W., Chang, T.G.: Job Scheduling on Computational Grids Using Fuzzy Particle Swarm Algorithm. In: Gabrys, B., Howlett, R.J., Jain, L.C. (eds.) KES 2006. LNCS (LNAI), vol. 4252, pp. 500–507. Springer, Heidelberg (2006) 7. Grosan, C., Abraham, A., Helvik, B.: Multi-objective Evolutionary Algorithms for Scheduling Jobs on Computational Grids. In: Guimaraes, N., Isaias, P. (eds.) International Conference on Applied Computing 2007, Salamanca, Spain, pp. 459– 463 (2007) ISBN 978-972-8924-30-0 8. Abraham, A., Buyya, R., Nath, B.: Nature’s Heuristics For Scheduling Jobs on Computational Grids. In: Proceedings of the 8th International Conference on Advanced Computing and Communications, pp. 45–52. Tata McGraw-Hill, India (2000) 9. Goldberg, D.E.: Genetic Algorithms in search, optimization, and machine learning. Addison-Wesley Publishing Corporation, Inc., Reading (1989) 10. Schaffer, J.D.: Multiple Objective Optimization with Vector Evaluated Genetic Algorithms, Ph. D. Thesis, Vanderbilt University, Nashville, TN (1984) 11. Abraham, A., Jain, L., Goldberg, R. (eds.): Evolutionary Multi-objective Optimization: Theoretical Advances and Applications, ch. 12, p. 315. Springer, London (2005) 12. Kirkpatrick, S., Gelatt, C.D., Vecchi, M.P.: Optimization by Simulated Annealing. Science 220(4598), 671–680 (1983) 13. Yao, X.: A New Simulated Annealing Algorithm. International Journal of Computer Mathematics 56, 161–168 (1995) 14. Bonabeau, E., Dorigo, M., Theraulaz, G.: Swarm Intelligence: From Natural to Artificial Systems. Oxford University Press, New York (1999) 15. Dorigo, M., St¨utzle, T.: Ant Colony Optimization. MIT Press, Cambridge (2004) 16. Gambardella, L.M., Dorigo, M.: Ant-Q: A reinforcement learning approach to the traveling salesman problem. In: Proceedings of the 11th International Conference on Machine Learning, pp. 252–260 (1995) 17. St¨utzle, T., Hoo, H.H.: MAX-MIN ant system. Future Generation Computer Systems 16, 889–914 (2000) 18. Kennedy, J., Eberhart, R.: Swarm Intelligence. Morgan Kaufmann, San Francisco (2001) 19. Clerc, M.: Particle Swarm Optimization. ISTE Publishing Company, London (2006)