GeneticAlgorithm  0.5 (beta)
A python framework for rapid GA prototyping
GeneticAlgorithm.LoggingOperators.LogGenerations Class Reference

Log the full population of a GA. More...

+ Inheritance diagram for GeneticAlgorithm.LoggingOperators.LogGenerations:
+ Collaboration diagram for GeneticAlgorithm.LoggingOperators.LogGenerations:

List of all members.

Public Member Functions

def __init__
 Base periodic logger constructor.
def logPopulation
def finalize
 This function is called once at the end of the algorithm run.

Public Attributes

 generationLog
 numEvaluations

Static Public Attributes

 iterationCallback = logPopulation
 evaluationCallback = logPopulation

Detailed Description

Log the full population of a GA.

Definition at line 64 of file LoggingOperators.py.


Constructor & Destructor Documentation

Base periodic logger constructor.

Parameters:
iterationCounterAn initial value for the iteration counter
evaluationCounterAn initial value for the individual evaluation counter
iterationFrequencyThis parameter controls how many iterations have to pass between iterationCallback calls
evaluationFrequencyThis parameter controls how many individuals are evaluated between evaluationCallback calls

Reimplemented from GeneticAlgorithm.Core.BasePeriodicOperator.

Definition at line 65 of file LoggingOperators.py.


Member Function Documentation

This function is called once at the end of the algorithm run.

Parameters:
populationThe population object to operate upon

Reimplemented from GeneticAlgorithm.Core.GeneticOperator.

Definition at line 79 of file LoggingOperators.py.

References GeneticAlgorithm.LoggingOperators.LogGenerations.generationLog, GeneticAlgorithm.LoggingOperators.BestLogger.numEvaluations, and GeneticAlgorithm.LoggingOperators.LogGenerations.numEvaluations.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables