Commit fa70145b authored by Joseph Pallamidessi's avatar Joseph Pallamidessi

Add back the globals variables OFFSPRING_SIZE, POP_SIZE

parent ba5fa59d
......@@ -23,6 +23,9 @@ float* pEZ_MUT_PROB = NULL;
float* pEZ_XOVER_PROB = NULL;
unsigned *EZ_NB_GEN;
unsigned *EZ_current_generation;
int EZ_POP_SIZE;
int OFFSPRING_SIZE;
CEvolutionaryAlgorithm* EA;
int main(int argc, char** argv){
......@@ -315,6 +318,8 @@ CEvolutionaryAlgorithm* ParametersImpl::newEvolutionaryAlgorithm(){
pEZ_XOVER_PROB = &pCrossover;
//EZ_NB_GEN = (unsigned*)setVariable("nbGen",\NB_GEN);
EZ_current_generation=0;
EZ_POP_SIZE = parentPopulationSize;
OFFSPRING_SIZE = offspringPopulationSize;
CEvolutionaryAlgorithm* ea = new EvolutionaryAlgorithmImpl(this);
generationalCriterion->setCounterEa(ea->getCurrentGenerationPtr());
......@@ -377,6 +382,9 @@ class CEvolutionaryAlgorithm;
class CPopulation;
class Parameters;
extern int EZ_POP_SIZE;
extern int OFFSPRING_SIZE;
\INSERT_USER_CLASSES_DEFINITIONS
class IndividualImpl : public CIndividual {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment