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 java.lang.String |
P_GLOBAL_COEFFICIENT |
static java.lang.String |
P_INCLUDE_SELF |
static java.lang.String |
P_INFORMANT_COEFFICIENT |
static java.lang.String |
P_NEIGHBORHOOD |
static java.lang.String |
P_NEIGHBORHOOD_SIZE |
static java.lang.String |
P_PERSONAL_COEFFICIENT |
static java.lang.String |
P_VELOCITY_COEFFICIENT |
double |
personalCoeff |
static java.lang.String |
V_NEIGHBORHOOD_RANDOM |
static java.lang.String |
V_NEIGHBORHOOD_RANDOM_EACH_TIME |
static java.lang.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 java.lang.String P_VELOCITY_COEFFICIENT
public static final java.lang.String P_PERSONAL_COEFFICIENT
public static final java.lang.String P_INFORMANT_COEFFICIENT
public static final java.lang.String P_GLOBAL_COEFFICIENT
public static final java.lang.String P_INCLUDE_SELF
public static final java.lang.String P_NEIGHBORHOOD
public static final java.lang.String P_NEIGHBORHOOD_SIZE
public static final java.lang.String V_NEIGHBORHOOD_RANDOM
public static final java.lang.String V_NEIGHBORHOOD_TOROIDAL
public static final java.lang.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)
Setup
public Population breedPopulation(EvolutionState state)
Breeder
breedPopulation
in class Breeder