#include <amygdala/gamanager.h>
Public Methods | |
GAManager () | |
virtual | ~GAManager () |
void | Run (AmTimeInt maxSimTime, AmTimeInt maxRunTime) |
virtual unsigned int | GetScore ()=0 |
virtual void | Setup (string uri)=0 |
int | Loop (string uri, AmTimeInt maxSimTime, AmTimeInt maxRunTime) |
Network * | getNetwork () |
void | GenomeFormat (string format) |
Protected Methods | |
void | finalize () |
Protected Attributes | |
Network * | NN |
Genome * | genome |
Static Protected Attributes | |
bool | run |
bool | isManager |
GAManager * | theGAManager |
|
return the results of the simulation |
|
If we load from a file the genome doesn't get the format of the genome. Here we can supply it. |
|
return the network, simply to get hold of simTime |
|
A derived class must implement this function to return the score |
|
Fork a new child for each generation. We do this to avoid trouble with mem leaks, Amygdala initialization... Let the OS clean things up. |
|
Set up the GA A derived class has to implement this class |
|
the network |