At the beginning, an initial population of size is created by the following procedure:
Once the initial population has reached the required size (chosen by the user), the evolutionary part of the algorithm is started. According to the probabilities and , at each iteration the crossover or the reproduction is executed.