The main stages of the basic genetic algorithm flow are shown in the following flowchart:
Basic flow of a genetic algorithm
These stages are described in detail in the following sections.
The main stages of the basic genetic algorithm flow are shown in the following flowchart:
These stages are described in detail in the following sections.
The initial population is a set of valid candidate solutions (individuals) chosen randomly. Since genetic algorithms use a chromosome to represent each individual, the initial population is actually a set of chromosomes. These chromosomes should conform to the chromosome format that we chose for the problem at hand, for example, binary strings of a certain length.