ec.spatial
Class SpatialMultiPopCoevolutionaryEvaluator

java.lang.Object
  extended by ec.Evaluator
      extended by ec.spatial.SpatialMultiPopCoevolutionaryEvaluator
All Implemented Interfaces:
Setup, Singleton, java.io.Serializable

public class SpatialMultiPopCoevolutionaryEvaluator
extends Evaluator

SpatialMultiPopCoevolutionaryEvaluator implements a coevolutionary evaluator involving multiple spatially-embedded subpopulations.

Version:
1.0
Author:
Liviu Panait
See Also:
Serialized Form

Field Summary
static java.lang.String P_NUM_PARTNERS
          The number of partners used for the coevolutionary evaluation from each of the subpopulations.
static java.lang.String P_SELECTIONMETHOD
          The selection method used to select the other partners from the previous generation.
static java.lang.String P_SUBPOP
          The preamble for selecting partners from each subpopulation.
static java.lang.String P_USE_SAME_LOCATION_PARTNER
          Whether one set of partners should be selected as the individuals with the same index from the other subpopulations.
 
Fields inherited from class ec.Evaluator
P_IAMSLAVE, P_MASTERPROBLEM, p_problem, P_PROBLEM
 
Constructor Summary
SpatialMultiPopCoevolutionaryEvaluator()
           
 
Method Summary
 void evaluatePopulation(EvolutionState state)
          Evaluates the fitness of an entire population.
 void performCoevolutionaryEvaluation(EvolutionState state, Population population, GroupedProblemForm prob)
           
 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 ec.Evaluator
closeContacts, initializeContacts, reinitializeContacts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

P_SUBPOP

public static final java.lang.String P_SUBPOP
The preamble for selecting partners from each subpopulation.

See Also:
Constant Field Values

P_SELECTIONMETHOD

public static final java.lang.String P_SELECTIONMETHOD
The selection method used to select the other partners from the previous generation.

See Also:
Constant Field Values

P_NUM_PARTNERS

public static final java.lang.String P_NUM_PARTNERS
The number of partners used for the coevolutionary evaluation from each of the subpopulations.

See Also:
Constant Field Values

P_USE_SAME_LOCATION_PARTNER

public static final java.lang.String P_USE_SAME_LOCATION_PARTNER
Whether one set of partners should be selected as the individuals with the same index from the other subpopulations.

See Also:
Constant Field Values
Constructor Detail

SpatialMultiPopCoevolutionaryEvaluator

public SpatialMultiPopCoevolutionaryEvaluator()
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

performCoevolutionaryEvaluation

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