Академический Документы
Профессиональный Документы
Культура Документы
knapsack overflows: ni=1wij <= cj for all j=1 to n such that it yields maximum profit p(x)= ni=1 xi pi.
inspired by evolution. y These algorithms encode a potential solution to a specific problem on a simple chromosome-like data structure and apply recombination operators to these structures as to preserve critical information. y An implementation of genetic algorithm begins with a population of (typically random) chromosomes. y One then evaluates these structures and allocated reproductive opportunities in such a way that these chromosomes which represent a better solution to the target problem are given more chances to `reproduce than those chromosomes which are poorer solutions. The 'goodness' of a solution is typically defined with respect to the current population.
y Coding or Representation y String with all parameters y Fitness function y Parent selection y Reproduction y Crossover y Mutation y Convergence y When to stop
y Reproduction operator
y Crossover y Mutation
y Crossover
y Two parents produce two offspring y There is a chance that the chromosomes of the two
parents are copied unmodified as offspring y There is a chance that the chromosomes of the two parents are randomly recombined (crossover) to form offspring y Generally the chance of crossover is between 0.6 and 1.0
y Mutation
y There is a chance that a gene of a child is changed
y Crossover
y Two parents produce two offspring y There is a chance that the chromosomes of the two
parents are copied unmodified as offspring y There is a chance that the chromosomes of the two parents are randomly recombined (crossover) to form offspring y Generally the chance of crossover is between 0.6 and 1.0
y Mutation
y There is a chance that a gene of a child is changed
y Mutation
y Generating new offspring from single parent
y Maintaining the diversity of the individuals y Crossover can only explore the combinations of the current gene pool y Mutation can generate new genes
population
y Although we decrease its strength by adding a penalty
term is.
following fitness function to be maximizedf(x)= ni=1 xi pi. s. max{pi} Where, y s- the number of knapsacks overfilled . y The no. of times this term is used , it reflects no. of knapsacks overfilled.
knap15,knap20 & so on given by Petersen , which can be accessed at Or library by Beasley . y In this problem 100 runs are to be filled in 10 knapsacks by 15,20 & so on objects respectively for knap15,knap20 problem & so on. y The value of fitness function produced by each of these objects containing runs are given . It shows that which runs are feasible to be added & which are not.
algorithm.
y We allow infeasible strings to participate since they
term.