12.07.2015 Views

Evolutionary algorithm for bin packing problem

Evolutionary algorithm for bin packing problem

Evolutionary algorithm for bin packing problem

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

in GGA; there is also the penalty term as the element of the fitness function.3. <strong>Evolutionary</strong> based heuristicThe version of the evolutionary strategy used by the author is the result of his studies of evolutionary <strong>algorithm</strong>s inflowshop <strong>problem</strong> [7]. No attempts were made to fine-tune any of the <strong>algorithm</strong> parameters. That is (1, λ) - ESwherein λ descendants are generated from one parent using simple operators. No crossover is applied. The best ofthe descendants becomes the new parent solution.The overall procedureThe general <strong>for</strong>m of the applied <strong>algorithm</strong> written in PASCAL pseudo-codes is presented below.BEGINgenerate and evaluate random starting solution;best solution:= start solution;REPEATFOR i:=1 to λ DOBEGINcopy parent to create child number i ;mutate child i;END;evaluate children;choose best child based on objective function to be a new parent;UNTIL (max. generation);output best solution;END.Chromosome representationPermitted solutions are represented by the list of n elements and s group separators, whereas the value j (1≤j≤n)can appear only once and so can the value i (n+1≤i≤n+s), indicating the separator number.There<strong>for</strong>e, <strong>for</strong> 7 elements and 3 group separators the solution in the <strong>for</strong>m R 1= (1,2,9,8,5,2,7,10,6,4) willmean that the elements <strong>for</strong>m three <strong>bin</strong>s (1,3); (5,2,7); (6,4), while the solution R 2=(1,10,3,8,5,2,9,7,6,4) meansthat the elements ought to be packed into four <strong>bin</strong>s (1), (3), (5,2), (7,6,4).It is accepted that s=ROUND (0.7* n)The initial populationThe initial population was obtained in a random manner.The fitness functionIn the <strong>algorithm</strong> the maximum of the following function was sought:FD =N∑i = 1Fis⋅ ⎛ ⎝ ⎜ ⎞⎟C ⎠N2whereN - the number of <strong>bin</strong>s in the given solutionFi - the sum of weights of the elements packed into the <strong>bin</strong> i, i=1..NC - the <strong>bin</strong> capacitys- a penalty constant, such that:⎧ 1s = ⎨⎩−1<strong>for</strong> F ≤ Ci<strong>for</strong> F > Ci2

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

Saved successfully!

Ooh no, something went wrong!