Update README.md
This commit is contained in:
@ -16,10 +16,15 @@ pip3 install EasyGA
|
|||||||
```Python
|
```Python
|
||||||
import EasyGA
|
import EasyGA
|
||||||
|
|
||||||
# Setup the default genetic algorithm
|
# Create the Genetic algorithm
|
||||||
ga = EasyGA.GA()
|
ga = EasyGA.GA()
|
||||||
# Run the default genetic algorithm
|
|
||||||
|
# Evolve the whole genetic algorithm until termination has been reached
|
||||||
ga.evolve()
|
ga.evolve()
|
||||||
|
|
||||||
|
# Print out the current generation and the population
|
||||||
|
ga.print_generation()
|
||||||
|
ga.print_population()
|
||||||
```
|
```
|
||||||
|
|
||||||
### Output:
|
### Output:
|
||||||
|
|||||||
Reference in New Issue
Block a user