evSOLve.JEvolution
Class JEvolutionStats

java.lang.Object
  |
  +--evSOLve.JEvolution.JEvolutionStats

public class JEvolutionStats
extends java.lang.Object

Do the statistics for a JEvolutionary Algorithm and report on results. Various statistics like fitness and genotype of Individuals are prepared. The amount of information reported can be adjusted.

Since:
November 7, 1999
Version:
0.2
Author:
Helmut A. Mayer

Field Summary
static int BRIEF
          Information on each generation.
static int MINIMAL
          Global run information.
static int QUIET
          No output from JevolutionStats.
static int VERBOSE
          Report on each Individual.
 
Method Summary
 double getBestFitnessOfRun()
          Access the last run's best fitness.
 int getIndividualsDone()
          Access the current number of fitness calculations performed.
 int getReportLevel()
          Access report level.
 boolean isFitnessRepositoryUsed()
          Access status of the use of fitness repository.
 void setPrintWriter(java.io.PrintWriter printWriter)
          Define the output sink.
 void setReportLevel(int reportLevel)
          Change report level.
 void useFitnessRepository(boolean on)
          Switch the use of fitness repository on/off.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUIET

public static final int QUIET
No output from JevolutionStats.

MINIMAL

public static final int MINIMAL
Global run information.

BRIEF

public static final int BRIEF
Information on each generation.

VERBOSE

public static final int VERBOSE
Report on each Individual.
Method Detail

getReportLevel

public int getReportLevel()
Access report level.

setReportLevel

public void setReportLevel(int reportLevel)
                    throws JEvolutionException
Change report level.
Parameters:
reportLevel - The amount of information reported.
Throws:
JEvolutionException - Invalid level.

isFitnessRepositoryUsed

public boolean isFitnessRepositoryUsed()
Access status of the use of fitness repository.

useFitnessRepository

public void useFitnessRepository(boolean on)
Switch the use of fitness repository on/off. Create a Repository, if there is none.
Parameters:
on - Turns it on/off.

getIndividualsDone

public int getIndividualsDone()
Access the current number of fitness calculations performed.

getBestFitnessOfRun

public double getBestFitnessOfRun()
Access the last run's best fitness.

setPrintWriter

public void setPrintWriter(java.io.PrintWriter printWriter)
Define the output sink. You can set it to 'null' to supress any output, but calling @see #setReportLevel with QUIET is the preferred method.
Parameters:
printWriter - prints results to attached device