11.07.2015 Views

View - Universidad de Almería

View - Universidad de Almería

View - Universidad de Almería

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GASUB: A genetic-like algorithm for discrete location problems 203The parameter levels indicates the maximal number of levels in the algorithm, i.e. the numberof different ’cooling’ stages. Every level i (i.e. for levels from [1, levels]) has a radius value(r i ) and two maxima on the number of function evaluations (f.e.) namely new i (maximum f.e.allowed when creating new subpopulations) and n i (maximum f.e. allowed when mutatingindividuals).During the optimization process, a list of subpopulations is kept by gasub and this subp −list <strong>de</strong>fines the whole population.3.3 Input parametersIn gasub the most important parameters are those <strong>de</strong>fined at each level: the radii (r i ) andthe numbers of function evaluations for subpopulations creation (new i ) and optimization (n i ).These parameters are computed from some user-given parameters that are easier to un<strong>de</strong>rstand:evals: The maximal number of function evaluations the user allows for the whole optimizationprocess.It could be called as Whole Budget. Note that the actual number offunction evaluations may be less than this value.levels: The maximum number of levels, i.e. the number of cooling stages.max subp num: The maximum length of the subp − list.r levels : The radius associated with the maximum level, i.e. levels.3.4 The AlgorithmThe gasub algorithm has the following structure:Begin gasubInitializing populationMutation(n 1 )for i = 1 to levelsDetermine r i , new i , n iGeneration and crossover(new i /length(subp list))Selection(r i , max subp num)Mutation(n i /max subp num)Selection(r i , max subp num)end forEnd gasubIn the following, the different key stages in the algorithm are <strong>de</strong>scribed:Initializing population: A new subpopulations list consisting of one subpopulation with arandom center at level one is created. The center must have as many genes to 1 value asthe number of new facilities are being chosen.Generation and crossover: For every individual in the subp − list, new random individualsare generated, and for every pair of new individuals the objective function is evaluatedat the middle of the section connecting the pair (see Figure 1). All generated individualsmust satisfy the constraint of having a fixed number of genes to 1 value. If the fitnessvalue of the middle point is better than the fitness value of the center of the subpopulation,then this individual will be the new center, keeping the same level value. If thevalue in the middle point is worse than the values of the pair, then the members of thepair are inserted in the subp − list. Every newly inserted subpopulation is assigned theactual level value (i).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!