Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

MultiMinEAEnv Class Reference

EAEnvironment for testing two-dimensional multiple-minima test function. More...

#include <testenv.h>

Inheritance diagram for MultiMinEAEnv:

EAEnvironment List of all members.

Public Methods

 MultiMinEAEnv (int minima, int minimadist)
virtual void addFeaturesTo (Genome &genome) const
virtual void init_cycle ()
virtual double evaluateg (const Individual &genome)
virtual void cycle_report (OStream &log, OStream &out)

Detailed Description

EAEnvironment for testing two-dimensional multiple-minima test function.

INCOMPLETE!

Definition at line 150 of file testenv.h.


Constructor & Destructor Documentation

MultiMinEAEnv int    minima,
int    minimadist
[inline]
 

Creates a test environment.

minima is the number of minima. minimadist is the desired distance between these minima.

Parameters:
minima  Number of minima
minimadist  Distance between the minima.

Definition at line 160 of file testenv.h.


Member Function Documentation

void addFeaturesTo Genome   genome const [virtual]
 

Adds problem-specific features to a genome.

Reimplemented from EAEnvironment.

Definition at line 264 of file testenv.cc.

References Gentainer::add().

virtual void cycle_report OStream &    log,
OStream &    out
[inline, virtual]
 

Prints some statistics or something at the end of the evaluation cycle.

Reimplemented from EAEnvironment.

Definition at line 164 of file testenv.h.

double evaluateg const Individual   genome [virtual]
 

Evaluates the fitness of the given individual in the environment.

MUST OVERLOAD!

Exceptions:
must_overload 

Reimplemented from EAEnvironment.

Definition at line 269 of file testenv.cc.

virtual void init_cycle   [inline, virtual]
 

Initializes a generation.

Not necessary in all models.

Reimplemented from EAEnvironment.

Definition at line 162 of file testenv.h.


The documentation for this class was generated from the following files:
Generated on Thu Feb 10 20:12:01 2005 for NeHeP by doxygen1.2.18