tests.cpp
114 QString filename = ConfigurationHelper::getString( params, prefix+"populationFile", QString() );
132 d.describeString( "populationFile" ).help( "The name of the file from wich to load the genotypes to test" );
133 d.describeInt( "idIndividual" ).limits( 0, MaxInteger ).help( "The id of the individual to test" );
148 Logger::error( QString("TestIndividual - Individual %1 doesn't exists (%2 individual have been loaded)").arg(idIndividual).arg(component()->getGA()->numLoadedGenotypes()) );
151 Logger::info( QString("TestIndividual - Start of the Test of Individual %1").arg(idIndividual) );
203 Descriptor d = addTypeDescription( type, "Tests the current individual, i.e. doesn't load nor randomize the genome" );
virtual void setNetParameters(float *genes)
Sets the free parameters of the neural network. This is done for all agents, even disabled ones...
Definition: evorobotexperiment.cpp:516
static QString getString(ConfigurationParameters ¶ms, QString paramPath, QString def=QString())
virtual void initGeneration(int generation)
Called at the beginning of a generation. This function is NEVER called concurrently on different obje...
Definition: evorobotexperiment.cpp:296
virtual void save(ConfigurationParameters ¶ms, QString prefix)
Save the actual status of parameters into the ConfigurationParameters object passed.
Definition: abstracttest.h:99
void doAllTrialsForIndividual(int individual)
Performs all trials for the given individual.
Definition: evorobotexperiment.cpp:242
void setPopulationToTest(QString filename, bool deferLoading=true)
Replace the current population loaded into GA with population loaded from file.
Definition: tests.cpp:165
QString m_menuText
change in in subclasses for setting the text will appear on the menu/toolbar
Definition: abstracttest.h:173
void copyPheParameters(int *pheGene)
transorm floating point parameters normalized in the range [-wrange,range] into integer parameters in...
Definition: evonet.cpp:1120
virtual void save(ConfigurationParameters ¶ms, QString prefix)
Save the actual status of parameters into the ConfigurationParameters object passed.
Definition: tests.cpp:121
virtual void configure(ConfigurationParameters ¶ms, QString prefix)
Configures the object using a ConfigurationParameters object.
Definition: tests.cpp:193
virtual void save(ConfigurationParameters ¶ms, QString prefix)
Save the actual status of parameters into the ConfigurationParameters object passed.
Definition: tests.cpp:197
virtual void save(ConfigurationParameters ¶ms, QString prefix)
Save the actual status of parameters into the ConfigurationParameters object passed.
Definition: tests.cpp:70
static void info(QString msg)
static void error(QString msg)
Evonet * getNeuralNetwork(int agentId=0)
Return the neural network used for the experiment.
Definition: evorobotexperiment.cpp:500
bool startObjectParameters(QString groupPath, QString typeName, ParameterSettable *object)
virtual void endGeneration(int generation)
Called at the end of a generation. This function is NEVER called concurrently on different objects...
Definition: evorobotexperiment.cpp:349
static Descriptor addTypeDescription(QString type, QString shortHelp, QString longHelp=QString(""))
virtual unsigned int loadGenotypes(QString filename)
Loads genotypes from the given file.
Definition: evoga.cpp:3118
An abstract class for tests of evolved individuals.
Definition: abstracttest.h:50
static const int MaxInteger
virtual EvoRobotExperiment * getEvoRobotExperiment()
Returns a pointer to the EvoRobotExperiment object.
Definition: evoga.cpp:3074
QString m_iconFilename
change in in subclasses for setting the icon will appear on the menu/toolbar
Definition: abstracttest.h:177
static int getInt(ConfigurationParameters ¶ms, QString paramPath, int def=0)
QString m_tooltip
change in in subclasses for setting the tooltip will appear on the menu/toolbar
Definition: abstracttest.h:175
virtual void configure(ConfigurationParameters ¶ms, QString prefix)
Configures the object using a ConfigurationParameters object.
Definition: tests.cpp:66
virtual void configure(ConfigurationParameters ¶ms, QString prefix)
Configures the object using a ConfigurationParameters object.
Definition: tests.cpp:112
The base common class that evaluate the fitness of a robot.
Definition: evorobotexperiment.h:155
void createParameter(QString groupPath, QString parameter)
virtual void configure(ConfigurationParameters &, QString)
Configures the object using a ConfigurationParameters object.
Definition: abstracttest.h:85
void setActivityPhase(Phases newPhase)
set the new activity phase
Definition: evorobotexperiment.h:353
void setIndividualToTest(int idIndividual)
Set id of the individual to test.
Definition: tests.cpp:161
static const float DEFAULT_VALUE
DEFAULT_VALUE is used for do not assign values to mut and parameters.
Definition: evonet.h:137