EvaluatorThreadForXnes Class Reference
this is an helper class for implementing multithread in xNES More...
Public Member Functions | |
| EvaluatorThreadForXnes (Evoga *ga, EvoRobotExperiment *exp) | |
| Constructor. More... | |
| ~EvaluatorThreadForXnes () | |
| Destructor. More... | |
| double | getError () const |
| Returns the similarity error of the last run. More... | |
| EvoRobotExperiment * | getExperiment () |
| Returns the experiment we run. More... | |
| double | getFitness () const |
| Returns the fitness of the last run. More... | |
| int | getGenotypeId () const |
| Returns the id of the genotype used in this experiment. More... | |
| void | run () |
| Runs the experiment. More... | |
| void | setGenotype (int id, float *genes) |
| Configures the experiment with the given genotype id. More... | |
Detailed Description
this is an helper class for implementing multithread in xNES
Constructor & Destructor Documentation
|
inline |
|
inline |
Member Function Documentation
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Runs the experiment.
Definition at line 210 of file evoga.cpp.
References EvoRobotExperiment::doAllTrialsForIndividual(), EvoRobotExperiment::getError(), and EvoRobotExperiment::getFitness().
|
inline |
Configures the experiment with the given genotype id.
- Parameters
-
id the genotype id to use in this experiment genes the genotype to use in this experiment
Definition at line 191 of file evoga.cpp.
References EvoRobotExperiment::setNetParameters().
The documentation for this class was generated from the following file:
- experiments/evorobot/src/evoga.cpp