Represents a population of GPs, while providing a simple console
based UI for interacting with a population
Provides on-demand console output of population statistics.
Provides visual progress indicators for genetic operations in
real time.
Methods
|
|
|
|
_contextSensitiveCrossoverOccured
|
_contextSensitiveCrossoverOccured ( self )
Called when a context sensitive crossover operation has occured
Extended to provide console-based feedback.
|
|
_crossoverOccured
|
_crossoverOccured ( self )
Called when a standard crossover operation has occured
Extended to provide console-based feedback.
|
|
_forceBestOccured
|
_forceBestOccured ( self )
Called when a force best operation has occured
This can be extended in subclasses to provide feedback.
|
|
_makeProgram
|
_makeProgram ( self, lisp )
Factory method for instantiating Programs
Overridden to create ConsolePrograms
|
|
_mutateOccured
|
_mutateOccured ( self )
Called when a mutate operation has occured
Extended to provide console-based feedback.
|
|
_nextProgress
|
_nextProgress ( self )
|
|
_populateOccured
|
_populateOccured ( self )
Called when an individual program is populated
Extended to provide console-based feedback
|
|
_populateProgress
|
_populateProgress ( self )
|
|
_replicateOccured
|
_replicateOccured ( self )
Called when a replicate operation has occured
Extended to provide console-based feedback.
|
|
_solutionFound
|
_solutionFound ( self )
Called when the solution has been discovered
Extended to provide console-based feedback.
|
|
_statsProgress
|
_statsProgress ( self )
|
|
_statsUpdateOccured
|
_statsUpdateOccured ( self )
Called when statistics are calculated for an individual program
Extended to provide console-base feedback
|
|
_statsUpdated
|
_statsUpdated ( self )
Called when the statistics have been updated
Extended to provide console-based feedback.
|
|
_updateStats
|
_updateStats ( self )
|
|
next
|
next ( self )
|
|
populate
|
populate ( self )
|
|
show
|
show ( self )
Print the contents of the current population
|
|
stats
|
stats ( self )
Print the stats of the current generation
|