#include <testenv.h>
Inheritance diagram for FloatTestEAEnv:
Public Methods | |
FloatTestEAEnv (const StringMap ¶ms, int dim=2, int funct_b=-1) | |
void | printMathematica2D () |
double | calc (const Vector &v, int f) |
void | changeObjective (int o) |
void | setGeneType (int vt) |
virtual void | addFeaturesTo (Genome &genome) const |
virtual void | init_cycle () |
virtual double | evaluateg (const Individual &genome) |
virtual void | cycle_report (OStream &log, OStream &out) |
Protected Attributes | |
int | dim |
int | func |
double | par_a |
double | par_b |
Definition at line 79 of file testenv.h.
|
Standard constructor.
Definition at line 95 of file testenv.cc. |
|
Adds problem-specific features to a genome.
Reimplemented from EAEnvironment. Definition at line 102 of file testenv.cc. References Gentainer::add(), and dim. |
|
Calculates the value of test function with given input vector.
Definition at line 201 of file testenv.cc. References func. Referenced by evaluateg(), and printMathematica2D(). |
|
Changes the objective.
|
|
Prints some statistics or something at the end of the evaluation cycle.
Reimplemented from EAEnvironment. |
|
Evaluates the fitness of the given individual in the environment. MUST OVERLOAD!
Reimplemented from EAEnvironment. Definition at line 193 of file testenv.cc. References calc(), dim, func, and Individual::getGene(). |
|
Initializes a generation. Not necessary in all models. Reimplemented from EAEnvironment. |
|
Makes an extensive search of all search spaces (functions) in two dimensions. The output is printed as Mathematica matrices. Definition at line 226 of file testenv.cc. References calc(). |
|
Sets the gene type: name ESFLOAT is FloatGene and name BITFLOAT is BitFloatGene (with 16 bits).
|
|
Dimension of search space.
Definition at line 130 of file testenv.h. Referenced by addFeaturesTo(), evaluateg(), and FloatTestEAEnv(). |
|
Function.
Definition at line 133 of file testenv.h. Referenced by calc(), evaluateg(), and FloatTestEAEnv(). |
|
Function-dependent parameter.
|
|
Function-dependent parameter.
|