|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.search.pso.Particle
lio.search.pso.contchain.StdContParticle
public class StdContParticle
Implements the particle used in PSO algorithms. Notice that it combines both inertial and Clerc's constraint for velocity updating.
Field Summary | |
---|---|
(package private) static double |
cognitive
Cognitive component of velocity updating. |
(package private) static double |
constraint
Constraint for velocity updating |
(package private) static double |
inertia
Inertia |
(package private) static double[][] |
ranges
Ranges for each variable. |
(package private) static int |
size
|
(package private) static double |
social
Social component of velocity updating. |
(package private) static double |
vmax
Factor for max velocity according to range. |
Fields inherited from class lio.search.pso.Particle |
---|
bestNeighbour, bestPosition, currentPosition |
Constructor Summary | |
---|---|
StdContParticle(ContChain pCurrentPos)
Constructor |
Method Summary | |
---|---|
static void |
calculateConstraint()
Calculates the constraint in case the parameter is equal to 0 by using clerc's formula. |
static void |
calculateMaxVelocities()
Calculates the maxVelocity for each component of the particle as a proportion of the range. |
void |
newPoint()
Calculates the new point Notice that both constraint(k) and inertia are used. |
static void |
setRanges(double[][] pRanges)
|
Methods inherited from class lio.search.pso.Particle |
---|
bestValue, getBestNeighbour, getBestPosition, getCurrentPosition, move, setBestNeighbour, setBestPosition, setCurrentPosition, value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static int size
static double inertia
static double cognitive
static double social
static double constraint
static double vmax
static double[][] ranges
Constructor Detail |
---|
public StdContParticle(ContChain pCurrentPos)
Method Detail |
---|
public static void setRanges(double[][] pRanges)
ranges
- the ranges to setpublic static void calculateConstraint()
public static void calculateMaxVelocities()
public void newPoint()
newPoint
in class Particle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |