|
|
Zeile 1: |
Zeile 1: |
| | | |
− | == Introduction == | + | ==Example== |
| | | |
| We toss a fair coin 60 times and get the following initial population: | | We toss a fair coin 60 times and get the following initial population: |
Version vom 24. Juni 2013, 21:49 Uhr
Example
We toss a fair coin 60 times and get the following initial population:
Fehler beim Parsen (http://mathoid.testme.wmflabs.org Serverantwort ist ungültiges JSON.): \color{red}\sum_{i=1}^{6}f(s_i)=34
The new population after performing selection:
We only perform a crossover for the pairs and
Crossover-points: 2 and 5
Before crossover:
After crossover:
Before applying mutation:
After applying mutation with updated fitness-values:
Fehler beim Parsen (http://mathoid.testme.wmflabs.org Serverantwort ist ungültiges JSON.): \sum_{i=1}^{6}f(s_i''')=37
Improvement of 9 percent