Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Latest commit

 

History

History
20 lines (14 loc) · 568 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 568 Bytes

GeneticAlgorithm

command format

Arguments are optional, if not given the default values of mode=0 and population_size=20000 will be used. Please enter non negative values only.

first arg - solver mode:

  • 0 - regular genetic solver
  • 1 - Darwin genetic solver
  • 2 - Lamarck genetic solver

second arg - initial population size (optional)

If not given, 20,000 is used as a default

example:

python3 geneticAlgorithm.py 2 1231

python3 geneticAlgorithm.py

python3 geneticAlgorithm.py 0 20000

Notice: Examples 2 and 3 are identical