ec.coevolve
Class MultiPopCompetitiveEvaluator

java.lang.Object
  |
  +--ec.Evaluator
        |
        +--ec.coevolve.MultiPopCompetitiveEvaluator
All Implemented Interfaces:
java.io.Serializable, Setup, Singleton

public class MultiPopCompetitiveEvaluator
extends Evaluator

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).

See Also:
Serialized Form

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

STYLE_COMPETE_WITH_BEST

public static final int STYLE_COMPETE_WITH_BEST
See Also:
Constant Field Values

competeStyle

public static final java.lang.String competeStyle
See Also:
Constant Field Values

style

public int style

P_N_GAMES

public static final java.lang.String P_N_GAMES
How many times to repeat the play against one opponent. Default value: 1 To be adjusted in noisy problems!

See Also:
Constant Field Values

nGames

public int nGames
Constructor Detail

MultiPopCompetitiveEvaluator

public MultiPopCompetitiveEvaluator()
Method Detail

setup

public void setup(EvolutionState state,
                  Parameter base)
Description copied from interface: Setup
Sets up the object by reading it from the parameters stored in state, built off of the parameter base base. If an ancestor implements this method, be sure to call super.setup(state,base); before you do anything else.

Specified by:
setup in interface Setup
Overrides:
setup in class Evaluator

runComplete

public boolean runComplete(EvolutionState state)
Description copied from class: Evaluator
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.

Specified by:
runComplete in class Evaluator

evaluatePopulation

public void evaluatePopulation(EvolutionState state)
Description copied from class: Evaluator
Evaluates the fitness of an entire population. You will have to determine how to handle multiple threads on your own, as this is a very domain-specific thing.

Specified by:
evaluatePopulation in class Evaluator

evalCompeteWithBest

public void evalCompeteWithBest(EvolutionState state,
                                Population population,
                                GroupedProblemForm prob)