|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupedProblemForm
GroupedProblemForm.java
GroupedProblemForm is an interface which defines methods for Problems to implement simple coevolutionary evaluation. In particular, the evaluate method receives as parameters a set of individuals that need to be evaluated. An additional vector-parameter (updateFitness) marks which individual fitnesses need to be updated during the evaluation process.
Method Summary | |
---|---|
void |
evaluate(EvolutionState state,
Individual[] ind,
boolean[] updateFitness,
boolean countVictoriesOnly,
int[] subpops,
int threadnum)
Evaluates the individuals found in ind together. |
void |
postprocessPopulation(EvolutionState state,
Population pop,
boolean countVictoriesOnly)
Finish processing the population (such as fitness information) after evaluation. |
void |
preprocessPopulation(EvolutionState state,
Population pop,
boolean countVictoriesOnly)
Set up the population pop (such as fitness information) prior to evaluation. |
Method Detail |
---|
void preprocessPopulation(EvolutionState state, Population pop, boolean countVictoriesOnly)
countVictoriesOnly will be set if Individuals' fitness is to be based on whether they're the winner of a test, instead of based on the specifics of the scores in the tests. This really only happens for Single-Elimination Tournament one-population competitive coevolution.
void postprocessPopulation(EvolutionState state, Population pop, boolean countVictoriesOnly)
countVictoriesOnly will be set if Individuals' fitness is to be based on whether they're the winner of a test, instead of based on the specifics of the scores in the tests. This really only happens for Single-Elimination Tournament one-population competitive coevolution. If this is set, probably would leave the Fitnesses as they are here (they've been set and incremented in evaluate(...)), but if it's not set, you may want to set the Fitnesses to the maximum or average or the various trials performed.
void evaluate(EvolutionState state, Individual[] ind, boolean[] updateFitness, boolean countVictoriesOnly, int[] subpops, int threadnum)
countVictoriesOnly will be set if Individuals' fitness is to be based on whether they're the winner of a test, instead of based on the specifics of the scores in the tests. This really only happens for Single-Elimination Tournament one-population competitive coevolution. If this is set, you should increment the Fitness of the winner each time. If it's not set, you should update Fitness as you see fit, then set the final Fitness in preprocessPopulation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |