|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ec.Evaluator | +--ec.coevolve.MultiPopCompetitiveEvaluator
MultiPopCompetitiveEvaluator.java
MultiPopCompetitiveEvaluator is an Evaluator which performs coevolution evaluations with multiple subpopulations (the fitness of an individual depends on competitions with individuals from other subpopulations).
Field Summary | |
static java.lang.String |
competeStyle
|
int |
nGames
|
static java.lang.String |
P_N_GAMES
How many times to repeat the play against one opponent. |
int |
style
|
static int |
STYLE_COMPETE_WITH_BEST
|
Fields inherited from class ec.Evaluator |
p_problem, P_PROBLEM |
Constructor Summary | |
MultiPopCompetitiveEvaluator()
|
Method Summary | |
void |
evalCompeteWithBest(EvolutionState state,
Population population,
GroupedProblemForm prob)
|
void |
evaluatePopulation(EvolutionState state)
Evaluates the fitness of an entire population. |
boolean |
runComplete(EvolutionState state)
Returns true if an ideal individual has been found or some other run result has shortcircuited the run so that it should end prematurely right now. |
void |
setup(EvolutionState state,
Parameter base)
Sets up the object by reading it from the parameters stored in state, built off of the parameter base base. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int STYLE_COMPETE_WITH_BEST
public static final java.lang.String competeStyle
public int style
public static final java.lang.String P_N_GAMES
public int nGames
Constructor Detail |
public MultiPopCompetitiveEvaluator()
Method Detail |
public void setup(EvolutionState state, Parameter base)
Setup
setup
in interface Setup
setup
in class Evaluator
public boolean runComplete(EvolutionState state)
Evaluator
runComplete
in class Evaluator
public void evaluatePopulation(EvolutionState state)
Evaluator
evaluatePopulation
in class Evaluator
public void evalCompeteWithBest(EvolutionState state, Population population, GroupedProblemForm prob)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |