| begin |
| randomly initialize population |
| evaluate fitness for all the individuals |
| while (maximal number of generations is not reached) do |
| begin |
| for to do |
| begin |
| choose a random real number |
| if () |
| apply site mutation |
| else |
| begin |
| choose three integers and , with |
| choose an integer number in |
| for to do |
| begin |
| choose a random real number |
| if OR |
|
| else |
| |
| end |
| if |
| insert in the new population |
| else |
| insert in the new population |
| end |
| end |
| end |
| end |