In this demonstration version you can experiment with the genetic settings. In my experience the default settings are the best settings.
Mutation rate
Change the percentage of chromosomes to mutate. Slide the slider from 0 to 1 (0 % to 100%).
Crossover rate
Change the percentage of chromosomes to crossover. Slide the slider from 0 to 1 (0 % to 100%).
Population size
Change the size of the population. Slide the slider from 2 to 1000. This value will always be even to avoid conflict with crossover.
Elitism rate
Change the percentage of best chromosomes to be copied to the new population. Slide the slider from 0 to 1 (0 % to 100%).
Creation method
Upon creation of the chromosome the cargo can be distributed over the cargo tanks as follows:Full tanks, consecutively a random tank is chosen and filled to the maximum volume until one gets the surplus.
Random, the cargo is completely randomly distributed over the cargo tanks.
Selection method
Chromosomes can be selected for crossover/mutation in one of the following ways:Rank, chromosomes are ranked according to their fitness. The chances of being selected are proportional to their rank (the higher the rank, the higher the chances).
Roulette, the chances of being selected are proportional to the real fitness value (the higher the fitness value, the higher the chances).
Crossover method
Two chromosomes can be combined in one of the following ways:Uniform, for each tank the volume of the first chromosome or the volume of the second chromosome is randomly selected. Afterwards a correction is applied to keep the total volume the same.
Mean, for every tank the mean value between the two chromosomes are used.
One point, one crossover point is selected.
Two point, two crossover points are selected.
Mutation method
A chromosome can be mutated in one of the following ways:Switch, tank volumes are switched around (keeping in mind the maximum volume).
Add/subtract random, a random volume is transferred from one tank to another.