org.primordion.ealontro.gp
Class XhKozaStatistics

java.lang.Object
  extended byec.Statistics
      extended byec.gp.koza.KozaStatistics
          extended byorg.primordion.ealontro.gp.XhKozaStatistics
All Implemented Interfaces:
java.io.Serializable, ec.Setup, ec.Singleton, ec.steadystate.SteadyStateStatisticsForm

public class XhKozaStatistics
extends ec.gp.koza.KozaStatistics

Generates Koza-style statistics, including an XML file that contains the best solution found. The XML file can be used as CompositeStructureHierarchy.xml in a Xholon application.

Since:
0.3 (Created on May 17, 2006)
Author:
Ken Webb
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ec.gp.koza.KozaStatistics
best_of_run, P_COMPRESS, P_FULL, P_STATISTICS_FILE, statisticslog
 
Fields inherited from class ec.Statistics
children, P_CHILD, P_NUMCHILDREN
 
Constructor Summary
XhKozaStatistics()
           
 
Method Summary
 void finalStatistics(ec.EvolutionState state, int result)
           
 float getAverageFitnessThisGeneration()
          Get the average fitness (ECJ standardized fitness = ECJ raw fitness) of this generation.
 float getBestFitnessThisGeneration()
          Get the best fitness (ECJ standardized fitness = ECJ raw fitness) of this generation.
 float getWorstFitnessThisGeneration()
          Get the worst fitness (ECJ standardized fitness = ECJ raw fitness) of this generation.
 void postEvaluationStatistics(ec.EvolutionState state)
           
static void setCshFilePath(java.lang.String modelName)
          Set the CompositeStructureHierarchy.xml file path, given the name of the model.
 
Methods inherited from class ec.gp.koza.KozaStatistics
individualsEvaluatedStatistics, postBreedingStatistics, postInitializationStatistics, preBreedingStatistics, preEvaluationStatistics, preInitializationStatistics, setup
 
Methods inherited from class ec.Statistics
individualsBredStatistics, postCheckpointStatistics, postInitialEvaluationStatistics, postPostBreedingExchangeStatistics, postPreBreedingExchangeStatistics, preCheckpointStatistics, preInitialEvaluationStatistics, prePostBreedingExchangeStatistics, prePreBreedingExchangeStatistics
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ec.steadystate.SteadyStateStatisticsForm
individualsBredStatistics, postInitialEvaluationStatistics, preInitialEvaluationStatistics
 

Constructor Detail

XhKozaStatistics

public XhKozaStatistics()
Method Detail

getWorstFitnessThisGeneration

public float getWorstFitnessThisGeneration()
Get the worst fitness (ECJ standardized fitness = ECJ raw fitness) of this generation.

Returns:
Worst fitness.

getAverageFitnessThisGeneration

public float getAverageFitnessThisGeneration()
Get the average fitness (ECJ standardized fitness = ECJ raw fitness) of this generation.

Returns:
Average fitness.

getBestFitnessThisGeneration

public float getBestFitnessThisGeneration()
Get the best fitness (ECJ standardized fitness = ECJ raw fitness) of this generation.

Returns:
Best fitness.

postEvaluationStatistics

public void postEvaluationStatistics(ec.EvolutionState state)

setCshFilePath

public static void setCshFilePath(java.lang.String modelName)
Set the CompositeStructureHierarchy.xml file path, given the name of the model.

Parameters:
modelName - Model name (ex: ./config/ealontro/CartCentering/EcjCartCentering_xhn.xml)

finalStatistics

public void finalStatistics(ec.EvolutionState state,
                            int result)