Structure change to make it easier for users to clone and use the repository.

This commit is contained in:
danielwilczak101
2021-01-26 21:20:38 -06:00
parent 92cea15a09
commit 2fc75aba07
43 changed files with 7 additions and 30 deletions

View File

@ -1 +0,0 @@

View File

@ -97,13 +97,15 @@ class GA(Attributes):
def update_population(self):
"""Updates the population to the new population and resets the mating pool and new population."""
"""Updates the population to the new population and resets
the mating pool and new population."""
self.population.update()
def reset_run(self):
"""Resets a run by re-initializing the population and modifying counters."""
"""Resets a run by re-initializing the population
and modifying counters."""
self.initialize_population()
self.current_generation = 0
@ -111,7 +113,8 @@ class GA(Attributes):
def active(self):
"""Returns if the ga should terminate based on the termination implimented."""
"""Returns if the ga should terminate based on the
termination implimented."""
return self.termination_impl()

View File

@ -4,7 +4,7 @@
EasyGA is a python package designed to provide an easy-to-use Genetic Algorithm. The package is designed to work right out of the box, while also allowing the user to customize features as they see fit.
### Check out our [wiki](https://github.com/danielwilczak101/EasyGA/wiki) for more information.
## Check out our [wiki](https://github.com/danielwilczak101/EasyGA/wiki) for more information.
## Installation:

View File

View File

@ -1,25 +0,0 @@
### ----- To run from the downloaded source code -----
run.py
#### ----- Main functionality files -----
EasyGA.py
attributes.py
#### ----- Decorators used to simply code -----
decorators.py
#### ----- Genetic Algorithm process -----
crossover/
mutation/
parent/
survivor/
termination/
#### ----- Building blocks -----
structure/
#### ----- Example code -----
examples/
#### ----- Testing -----
test_EasyGA.py