public class PSOBreeder extends Breeder
Parameters
| base.velocity-coefficient float ≥ 0 |
(The weight for the velocity) |
| base.personal-coefficient float ≥ 0 |
(The weight for the personal-best vector) |
| base.informant-coefficient float ≥ 0 |
(The weight for the neighborhood/informant-best vector) |
| base.global-coefficient float ≥ 0 |
(The weight for the global-best vector) |
| base.neighborhood-size int > 0 |
(The size of the neighborhood of informants, not including the particle) |
| base.neighborhood-style String, one of: random toroidal random-each-time |
(The method of generating the neighborhood of informants, not including the particle) |
| base.include-self true or false (default) |
(Whether to include the particle itself as a member of the neighborhood after building the neighborhood) |
| Modifier and Type | Field and Description |
|---|---|
static int |
C_NEIGHBORHOOD_RANDOM |
static int |
C_NEIGHBORHOOD_RANDOM_EACH_TIME |
static int |
C_NEIGHBORHOOD_TOROIDAL |
double[][] |
globalBest |
Fitness[] |
globalBestFitness |
double |
globalCoeff |
boolean |
includeSelf |
double |
informantCoeff |
int |
neighborhood |
int |
neighborhoodSize |
static String |
P_GLOBAL_COEFFICIENT |
static String |
P_INCLUDE_SELF |
static String |
P_INFORMANT_COEFFICIENT |
static String |
P_NEIGHBORHOOD |
static String |
P_NEIGHBORHOOD_SIZE |
static String |
P_PERSONAL_COEFFICIENT |
static String |
P_VELOCITY_COEFFICIENT |
double |
personalCoeff |
static String |
V_NEIGHBORHOOD_RANDOM |
static String |
V_NEIGHBORHOOD_RANDOM_EACH_TIME |
static String |
V_NEIGHBORHOOD_TOROIDAL |
double |
velCoeff |
| Constructor and Description |
|---|
PSOBreeder() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final int C_NEIGHBORHOOD_RANDOM
public static final int C_NEIGHBORHOOD_TOROIDAL
public static final int C_NEIGHBORHOOD_RANDOM_EACH_TIME
public static final String P_VELOCITY_COEFFICIENT
public static final String P_PERSONAL_COEFFICIENT
public static final String P_INFORMANT_COEFFICIENT
public static final String P_GLOBAL_COEFFICIENT
public static final String P_INCLUDE_SELF
public static final String P_NEIGHBORHOOD
public static final String P_NEIGHBORHOOD_SIZE
public static final String V_NEIGHBORHOOD_RANDOM
public static final String V_NEIGHBORHOOD_TOROIDAL
public static final String V_NEIGHBORHOOD_RANDOM_EACH_TIME
public int neighborhood
public double velCoeff
public double personalCoeff
public double informantCoeff
public double globalCoeff
public int neighborhoodSize
public boolean includeSelf
public double[][] globalBest
public Fitness[] globalBestFitness
public void setup(EvolutionState state, Parameter base)
Setuppublic Population breedPopulation(EvolutionState state)
BreederbreedPopulation in class BreederCopyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.