Mutation (evolutionary algorithm): Difference between revisions
m Some more references |
|||
Line 15: | Line 15: | ||
# small mutations should be more probable than large ones. |
# small mutations should be more probable than large ones. |
||
For different genome types, different mutation types are suitable. An overview and more operators can be found in the introductory book by Eiben and Smith<ref>{{Cite book |last=Eiben |first=A.E. |url=http://link.springer.com/10.1007/978-3-662-44874-8 |title=Introduction to Evolutionary Computing |last2=Smith |first2=J.E. |date=2015 |publisher=Springer |isbn=978-3-662-44873-1 |series=Natural Computing Series |location=Berlin, Heidelberg |pages=49-78 |chapter=Representation, Mutation, and Recombination |doi=10.1007/978-3-662-44874-8}}</ref> or in <ref name=":0" / |
For different genome types, different mutation types are suitable. An overview and more operators than those presented below can be found in the introductory book by Eiben and Smith<ref>{{Cite book |last=Eiben |first=A.E. |url=http://link.springer.com/10.1007/978-3-662-44874-8 |title=Introduction to Evolutionary Computing |last2=Smith |first2=J.E. |date=2015 |publisher=Springer |isbn=978-3-662-44873-1 |series=Natural Computing Series |location=Berlin, Heidelberg |pages=49-78 |chapter=Representation, Mutation, and Recombination |doi=10.1007/978-3-662-44874-8}}</ref> or in <ref name=":0" />. |
||
== Bit string mutation == |
== Bit string mutation == |
||
Line 32: | Line 32: | ||
== Mutation of real numbers == |
== Mutation of real numbers == |
||
Many EAs, such as the [[evolution strategy]]<ref>{{Cite book |last=Rechenberg |first=Ingo |title=Evolutionsstrategie – Optimierung technischer Systeme nach Prinzipien der biologischen Evolution |publisher=Frommann-Holzboog |year=1973 |isbn=3-7728-0373-3 |language=de |type=PhD thesis}}</ref><ref>{{Cite book |last=Schwefel |first=Hans-Paul |title= |
Many EAs, such as the [[evolution strategy]]<ref>{{Cite book |last=Rechenberg |first=Ingo |title=Evolutionsstrategie – Optimierung technischer Systeme nach Prinzipien der biologischen Evolution |publisher=Frommann-Holzboog |year=1973 |isbn=3-7728-0373-3 |language=de |type=PhD thesis}}</ref><ref>{{Cite book |last=Schwefel |first=Hans-Paul |title=Numerische Optimierung von Computermodellen |date=1977 |publisher=Birkhäuser Verlag. Translation: Numerical optimization of computer models, Wiley, Chichester, 1981 |isbn=0-471-09988-0 |location=Basel |language=de |trans-chapter= |type=PhD thesis |oclc=8011455}}</ref> or the real-coded [[Genetic algorithm|genetic algorithms]]<ref>{{Citation |last=Wright |first=Alden H. |title=Genetic Algorithms for Real Parameter Optimization |date=1991 |url=https://www.sciencedirect.com/science/article/pii/B9780080506845500161 |work=Foundations of Genetic Algorithms |volume=1 |pages=205–218 |editor-last=Rawlins |editor-first=Gregory J. E. |publisher=Elsevier |language=en |doi=10.1016/b978-0-08-050684-5.50016-1 |access-date=2023-01-02}}</ref><ref>{{Citation |last=Eshelman |first=Larry J. |title=Real-Coded Genetic Algorithms and Interval-Schemata |date=1993 |url=https://linkinghub.elsevier.com/retrieve/pii/B9780080948324500180 |work=Foundations of Genetic Algorithms |volume=2 |pages=187–202 |publisher=Elsevier |language=en |doi=10.1016/b978-0-08-094832-4.50018-0 |isbn=978-0-08-094832-4 |access-date=2023-01-01 |last2=Schaffer |first2=J. David}}</ref><ref name=":0" />, work with real numbers instead of bit strings. This is due to the good experiences that have been made with this type of coding.<ref name=":0" /><ref>{{Cite journal |last=Herrera |first=F. |last2=Lozano |first2=M. |last3=Verdegay |first3=J.L. |date=1998 |title=Tackling Real-Coded Genetic Algorithms: Operators and Tools for Behavioural Analysis. |url=http://link.springer.com/10.1023/A:1006504901164 |journal=Artificial Intelligence Review |volume=12 |issue=4 |pages=265–319 |doi=10.1023/A:1006504901164}}</ref> |
||
The value of a real-valued gene can either be changed or redetermined. A mutation that implements the latter should only ever be used in conjunction with the value-changing mutations and then only with comparatively low probability, as it can lead to large changes. |
The value of a real-valued gene can either be changed or redetermined. A mutation that implements the latter should only ever be used in conjunction with the value-changing mutations and then only with comparatively low probability, as it can lead to large changes. |
||
Line 124: | Line 124: | ||
==Bibliography== |
==Bibliography== |
||
* John Holland |
* John Holland (1975). ''Adaptation in Natural and Artificial Systems'', PhD thesis, [[University of Michigan Press]], Ann Arbor, Michigan.{{ISBN|0-262-58111-6}}. |
||
* {{Cite book |last=Schwefel |first=Hans-Paul |title=Evolution and Optimum Seeking |publisher=John Wiley & Sons |year=1995 |isbn=0-471-57148-2 |location=New York |language=en}}. |
|||
* {{Cite book |last=Davis |first=Lawrence |title=Handbook of genetic algorithms |date=1991 |publisher=Van Nostrand Reinhold |isbn=0-442-00173-8 |location=New York |oclc=23081440}}. |
|||
* {{Cite book |last=De Jong |first=Kenneth A. |title=Evolutionary computation : a unified approach |date=2006 |publisher=MIT Press |isbn=978-0-262-25598-1 |location=Cambridge, Mass. |language=en |oclc=69652176}} |
|||
{{DEFAULTSORT:Mutation (Genetic Algorithm)}} |
{{DEFAULTSORT:Mutation (Genetic Algorithm)}} |
Revision as of 15:22, 5 January 2023
Mutation is a genetic operator used to maintain genetic diversity of the chromosomes of a population of a genetic or, more generally, an evolutionary algorithm (EA). It is analogous to biological mutation.
The classic example of a mutation operator of a binary coded genetic algorithm (GA) involves a probability that an arbitrary bit in a genetic sequence will be flipped from its original state. A common method of implementing the mutation operator involves generating a random variable for each bit in a sequence. This random variable tells whether or not a particular bit will be flipped. This mutation procedure, based on the biological point mutation, is called single point mutation. Other types of mutation operators are commonly used for representations other than binary, such as floating-point encodings or representations for combinatorial problems.
The purpose of mutation in EAs is to introduce diversity into the sampled population. Mutation operators are used in an attempt to avoid local minima by preventing the population of chromosomes from becoming too similar to each other, thus slowing or even stopping convergence to the global optimum. This reasoning also leads most EAs to avoid only taking the fittest of the population in generating the next generation, but rather selecting a random (or semi-random) set with a weighting toward those that are fitter.[1]
The following requirements apply to all mutation operators used in an EA:[2][3][4]
- every point in the search space must be reachable by one or more mutations.
- there must be no preference for parts or directions in the search space (no drift).
- small mutations should be more probable than large ones.
For different genome types, different mutation types are suitable. An overview and more operators than those presented below can be found in the introductory book by Eiben and Smith[5] or in [2].
Bit string mutation
The mutation of bit strings ensue through bit flips at random positions.
Example:
1 | 0 | 1 | 0 | 0 | 1 | 0 |
↓ | ||||||
1 | 0 | 1 | 0 | 1 | 1 | 0 |
The probability of a mutation of a bit is , where is the length of the binary vector. Thus, a mutation rate of per mutation and individual selected for mutation is reached.
Mutation of real numbers
Many EAs, such as the evolution strategy[6][7] or the real-coded genetic algorithms[8][9][2], work with real numbers instead of bit strings. This is due to the good experiences that have been made with this type of coding.[2][10]
The value of a real-valued gene can either be changed or redetermined. A mutation that implements the latter should only ever be used in conjunction with the value-changing mutations and then only with comparatively low probability, as it can lead to large changes.
In practical applications, the decision variables to be changed of the optimisation problem to be solved are usually limited. Accordingly, the values of the associated genes are each restricted to an interval . Mutations may or may not take these restrictions into account. In the latter case, suitable post-treatment is then required as described below.
Mutation without consideration of restrictions
A real number can be mutated using normal distribution by adding the generated random value to the old value of the gene, resulting in the mutated value :
In the case of genes with a restricted range of values, it is a good idea to choose the step size of the mutation so that it reasonably fits the range of the gene to be changed, e.g.:
The step size can also be adjusted to the smaller permissible change range depending on the current value. In any case, however, it is likely that the new value of the gene will be outside the permissible range of values. Such a case must be considered a lethal mutation, since the obvious repair by using the respective violated limit as the new value of the gene would lead to a drift. This is because the limit value would then be selected with the entire probability of the values beyond the limit of the value range.
The evolution strategy works with real numbers and mutation based on normal distribution. The step sizes are part of the chromosome and are subject to evolution together with the actual decision variables.
Mutation with consideration of restrictions
One possible form of changing the value of a gene while taking its value range into account is the mutation relative parameter change of the evolutionary algorithm GLEAM (General Learning Evolutionary Algorithm and Method),[11] in which, as with the mutation presented earlier, small changes are more likely than large ones.
First, an equally distributed decision is made as to whether the current value should be increased or decreased and then the corresponding total change interval is determined. Without loss of generality, an increase is assumed for the explanation and the total change interval is then . It is divided into sub-areas of equal size with the width , from which sub-change intervals of different size are formed:
- -th sub-change interval: with
- and
Subsequently, one of the sub-change intervals is selected in equal distribution and a random number, also equally distributed, is drawn from it as the new value of the gene. The resulting summed probabilities of the sub-change intervals result in the probability distribution of the sub-areas for the exemplary case of shown in the adjacent figure. This is not a normal distribution as before, but this distribution also clearly favours small changes over larger ones.
This mutation for larger values of , such as 10, is less well suited for tasks where the optimum lies on one of the value range boundaries. This can be remedied by significantly reducing when a gene value approaches its limits very closely.
Mutation of permutations
Mutations of permutations are specially designed for genomes that are themselves permutations of a set. These are often used to solve combinatorial tasks. In the two mutations presented, parts of the genome are rotated or inverted.
Rotation to the right
The presentation of the procedure is illustrated by an example on the right:
Procedure | Example | |
* Let a permutation be given. | ||
* Select a partial list, i.e. a start index and an end index in , which are both natural numbers between 0 and . Choose the number of positions by which the partial list should be rotated, where . The start index can also be after the end index. Then the partial list simply starts again from the beginning (periodic boundary condition). This is necessary so that the permutation probability in the genome is the same everywhere and is not greater in the middle than at the edges. | , , | |
* Copy to and rotate the partial list by positions to the right. | ||
* is then the mutated genome. |
Inversion
The presentation of the procedure is illustrated by an example on the right:
Procedure | Example | |
* Let a permutation be given. | ||
* Select a partial list, i.e. a start index and an end index in , which are both natural numbers between 0 and , where . This condition causes the mutation to always produce a genotypically altered chromosome. The start index can also be after the end index. Then the partial list simply starts again from the beginning (periodic boundary condition). This is necessary so that the permutation probability in the genome is the same everywhere and is not greater in the middle than at the edges. | , | |
* Copy to and invert the partial list. | ||
* is then the mutated genome. |
Variants with preference for smaller changes
The requirement raised at the beginning for mutations, according to which small changes should be more probable than large ones, is only inadequately fulfilled by the two permutation mutations presented, since the lengths of the partial lists and the number of shift positions are determined in an equally distributed manner. However, the longer the partial list and the shift, the greater the change in gene order.
This can be remedied by the following modifications. The end index of the partial lists is determined as the distance to the start index :
where is determined randomly according to one of the two procedures for the mutation of real numbers from the interval and rounded.
For the rotation, is determined similarly to the distance , but the value is forbidden.
For the inversion, note that must hold, so for the value must be excluded.
See also
References
- ^ "XI. Crossover and Mutation". Marek Obitko. Retrieved 2011-04-07.
- ^ a b c d Michalewicz, Zbigniew (1992). Genetic Algorithms + Data Structures = Evolution Programs. Artificial Intelligence. Berlin, Heidelberg: Springer Berlin Heidelberg. doi:10.1007/978-3-662-02830-8. ISBN 978-3-662-02832-2.
- ^ Baeck, Thomas; Fogel, D.B; Michalewicz, Z, eds. (1997-01-01). Handbook of Evolutionary Computation. CRC Press. doi:10.1201/9780367802486. ISBN 978-0-367-80248-6.
- ^ Eiben, A.E.; Smith, J.E. (2015). Introduction to Evolutionary Computing. Natural Computing Series. Berlin, Heidelberg: Springer Berlin Heidelberg. doi:10.1007/978-3-662-44874-8. ISBN 978-3-662-44873-1.
- ^ Eiben, A.E.; Smith, J.E. (2015). "Representation, Mutation, and Recombination". Introduction to Evolutionary Computing. Natural Computing Series. Berlin, Heidelberg: Springer. pp. 49–78. doi:10.1007/978-3-662-44874-8. ISBN 978-3-662-44873-1.
- ^ Rechenberg, Ingo (1973). Evolutionsstrategie – Optimierung technischer Systeme nach Prinzipien der biologischen Evolution (PhD thesis) (in German). Frommann-Holzboog. ISBN 3-7728-0373-3.
- ^ Schwefel, Hans-Paul (1977). Numerische Optimierung von Computermodellen (PhD thesis) (in German). Basel: Birkhäuser Verlag. Translation: Numerical optimization of computer models, Wiley, Chichester, 1981. ISBN 0-471-09988-0. OCLC 8011455.
- ^ Wright, Alden H. (1991), Rawlins, Gregory J. E. (ed.), "Genetic Algorithms for Real Parameter Optimization", Foundations of Genetic Algorithms, vol. 1, Elsevier, pp. 205–218, doi:10.1016/b978-0-08-050684-5.50016-1, retrieved 2023-01-02
- ^ Eshelman, Larry J.; Schaffer, J. David (1993), "Real-Coded Genetic Algorithms and Interval-Schemata", Foundations of Genetic Algorithms, vol. 2, Elsevier, pp. 187–202, doi:10.1016/b978-0-08-094832-4.50018-0, ISBN 978-0-08-094832-4, retrieved 2023-01-01
- ^ Herrera, F.; Lozano, M.; Verdegay, J.L. (1998). "Tackling Real-Coded Genetic Algorithms: Operators and Tools for Behavioural Analysis". Artificial Intelligence Review. 12 (4): 265–319. doi:10.1023/A:1006504901164.
- ^ Blume, Christian; Jakob, Wilfried (2002), "GLEAM - An Evolutionary Algorithm for Planning and Control Based on Evolution Strategy", Conf. Proc. of Genetic and Evolutionary Computation Conference (GECCO 2002), vol. Late Breaking Papers, pp. 31–38, retrieved 2023-01-01
Bibliography
- John Holland (1975). Adaptation in Natural and Artificial Systems, PhD thesis, University of Michigan Press, Ann Arbor, Michigan.ISBN 0-262-58111-6.
- Schwefel, Hans-Paul (1995). Evolution and Optimum Seeking. New York: John Wiley & Sons. ISBN 0-471-57148-2..
- Davis, Lawrence (1991). Handbook of genetic algorithms. New York: Van Nostrand Reinhold. ISBN 0-442-00173-8. OCLC 23081440..
- De Jong, Kenneth A. (2006). Evolutionary computation : a unified approach. Cambridge, Mass.: MIT Press. ISBN 978-0-262-25598-1. OCLC 69652176.