ec.pso
Class PSOBreeder

java.lang.Object
  extended by ec.Breeder
      extended by ec.pso.PSOBreeder
All Implemented Interfaces:
Setup, Singleton, java.io.Serializable

public class PSOBreeder
extends Breeder

PSOBreeder.java

The PSOBreeder performs the calculations to determine new particle locations and performs the bookkeeping to keep track of personal, neighborhood, and global best solutions.

Parameters

base.debug-info
boolean
(whether the system should display information useful for debugging purposes)

Version:
1.0
Author:
Joey Harrison, Ankur Desai
See Also:
Serialized Form

Constructor Summary
PSOBreeder()
           
 
Method Summary
 void assignGlobalBest(PSOSubpopulation subpop)
           
 void assignNeighborhoodBests(PSOSubpopulation subpop)
           
 void assignPersonalBests(PSOSubpopulation subpop)
           
 Population breedPopulation(EvolutionState state)
          Breeds state.population, returning a new population.
 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
 

Constructor Detail

PSOBreeder

public PSOBreeder()
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.


breedPopulation

public Population breedPopulation(EvolutionState state)
Description copied from class: Breeder
Breeds state.population, returning a new population. In general, state.population should not be modified.

Specified by:
breedPopulation in class Breeder

assignPersonalBests

public void assignPersonalBests(PSOSubpopulation subpop)

assignNeighborhoodBests

public void assignNeighborhoodBests(PSOSubpopulation subpop)

assignGlobalBest

public void assignGlobalBest(PSOSubpopulation subpop)