#include <testenv.h>
Inheritance diagram for BinaryTestEAEnv:
Public Methods | |
BinaryTestEAEnv (int d, int nObjectives=1) | |
void | changeObjective (int target) |
virtual void | addFeaturesTo (Genome &genome) const |
virtual void | init_cycle () |
virtual double | evaluateg (const Individual &genome) |
virtual void | cycle_report (OStream &log, OStream &out) |
Definition at line 40 of file testenv.h.
|
Creates a binary test environment.
Definition at line 43 of file testenv.cc. References changeObjective(). |
|
Adds problem-specific features to a genome.
Reimplemented from EAEnvironment. Definition at line 56 of file testenv.cc. References Gentainer::add(). |
|
Changes objective to another target (usually 0 or 1).
Definition at line 48 of file testenv.cc. Referenced by BinaryTestEAEnv(). |
|
Prints some statistics or something at the end of the evaluation cycle.
Reimplemented from EAEnvironment. Definition at line 79 of file testenv.cc. |
|
Evaluates the fitness of the given individual in the environment. MUST OVERLOAD!
Reimplemented from EAEnvironment. Definition at line 65 of file testenv.cc. References Individual::getGene(). |
|
Initializes a generation. Not necessary in all models. Reimplemented from EAEnvironment. |