When running the Cargo problem with
soln = Genetic.run(Cargo, population_size: 25)
we get an error due to an odd population size against the crossover’s chromosome pairing strategy. Making the population even (i.e. 26) resolves the issue.
When running the Cargo problem with
soln = Genetic.run(Cargo, population_size: 25)
we get an error due to an odd population size against the crossover’s chromosome pairing strategy. Making the population even (i.e. 26) resolves the issue.