|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.dishevelled.swarm.ParticleSwarmOptimizationAlgorithmEvent
public final class ParticleSwarmOptimizationAlgorithmEvent
An event representing progress in a particle swarm optimization algorithm function.
| Field Summary | |
|---|---|
static int |
DEFAULT_DIMENSION
Default dimension. |
static int |
DEFAULT_EPOCH
Default epoch. |
static double |
DEFAULT_FITNESS
Default fitness score. |
static int |
DEFAULT_PARTICLE
Default particle. |
static double |
DEFAULT_VALUE
Default value. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ParticleSwarmOptimizationAlgorithmEvent(ParticleSwarmOptimizationAlgorithm source,
int particle,
int dimension,
double value)
Create a new particle swarm optimization algorithm event with the specified parameters. |
|
ParticleSwarmOptimizationAlgorithmEvent(ParticleSwarmOptimizationAlgorithm source,
int particle,
int dimension,
double value,
double fitness)
Create a new particle swarm optimization algorithm event with the specified parameters. |
|
ParticleSwarmOptimizationAlgorithmEvent(ParticleSwarmOptimizationAlgorithm source,
ParticleSwarm swarm,
int epoch)
Create a new particle swarm optimization algorithm event with the specified parameters. |
|
| Method Summary | |
|---|---|
int |
getDimension()
Return the dimension for this event, if any. |
int |
getEpoch()
Return the epoch for this event, if any. |
double |
getFitness()
Return the fitness score for this event, if any. |
int |
getParticle()
Return the particle for this event, if any. |
ParticleSwarm |
getParticleSwarm()
Return the particle swarm for this event, if any. |
ParticleSwarmOptimizationAlgorithm |
getParticleSwarmOptimizationAlgorithm()
Return the source of this event as a particle swarm optimization algorithm. |
double |
getValue()
Return the value for this event, if any. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_EPOCH
public static final int DEFAULT_PARTICLE
public static final int DEFAULT_DIMENSION
public static final double DEFAULT_VALUE
public static final double DEFAULT_FITNESS
| Constructor Detail |
|---|
ParticleSwarmOptimizationAlgorithmEvent(ParticleSwarmOptimizationAlgorithm source,
ParticleSwarm swarm,
int epoch)
source - source of this event, must not be nullswarm - particle swarm, must not be nullepoch - epoch
ParticleSwarmOptimizationAlgorithmEvent(ParticleSwarmOptimizationAlgorithm source,
int particle,
int dimension,
double value)
source - source of this event, must not be nullparticle - particledimension - dimensionvalue - value, may be position or velocity
ParticleSwarmOptimizationAlgorithmEvent(ParticleSwarmOptimizationAlgorithm source,
int particle,
int dimension,
double value,
double fitness)
source - source of this event, must not be nullparticle - particledimension - dimensionvalue - value, may be position or velocityfitness - fitness score| Method Detail |
|---|
public ParticleSwarmOptimizationAlgorithm getParticleSwarmOptimizationAlgorithm()
public ParticleSwarm getParticleSwarm()
public int getEpoch()
-1.
DEFAULT_EPOCHpublic int getParticle()
-1.
DEFAULT_PARTICLEpublic int getDimension()
-1.
DEFAULT_DIMENSIONpublic double getValue()
Double.NaN.
DEFAULT_VALUEpublic double getFitness()
Double.NaN.
DEFAULT_FITNESS
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||