1#include "ECF/ECF_base.h"
5SolverSHC :: SolverSHC()
14 for(uint i = 0; i < deme->size(); i++) {
15 IndividualP
copy = (IndividualP) deme->at(i)->copy();
16 MoveP
move = getProblem()->randomMove(
copy);
20 if(!deme->at(i)->getFitness()->isBetterThan(
copy->getFitness()))
IndividualP copy(IndividualP source)
Helper function: make a copy of an individual.
std::string name_
algorithm name
void replaceWith(IndividualP oldInd, IndividualP newInd)
Helper function: replace an individual in current deme.
void evaluate(IndividualP ind)
Helper function: evaluate an individual.
bool advanceGeneration(StateP state, DemeP deme)
Perform a single generation on a single deme.