Adding Evolution Strategies:
src/es/eoEsGlobalXover.h and src/es/eoEsLocalXover.h for crossover src/es/make_XXX_es.h for user-input test/t-eoEsAll.cpp to test However, an old bug appeared: className was not const in eoGenOp (and derived classes) so I had to change that throughtout the hierarchy
This commit is contained in:
parent
4a152dc172
commit
10064ad967
28 changed files with 471 additions and 180 deletions
|
|
@ -67,7 +67,7 @@ class eoOpContainer : public eoGenOp<EOT>
|
|||
max_to_produce = max(max_to_produce,ops.back()->max_production());
|
||||
}
|
||||
|
||||
virtual string className() = 0;
|
||||
virtual string className() const = 0;
|
||||
|
||||
protected :
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ class eoSequentialOp : public eoOpContainer<EOT>
|
|||
while (!_pop.exhausted());
|
||||
}
|
||||
}
|
||||
virtual string className() {return "SequentialOp";}
|
||||
virtual string className() const {return "SequentialOp";}
|
||||
|
||||
private :
|
||||
|
||||
|
|
@ -148,7 +148,7 @@ class eoProportionalOp : public eoOpContainer<EOT>
|
|||
catch(eoPopulator<EOT>::OutOfIndividuals&)
|
||||
{}
|
||||
}
|
||||
virtual string className() {return "ProportionalOp";}
|
||||
virtual string className() const {return "ProportionalOp";}
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue