|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpso.PSOEngine
public class PSOEngine

Engine for Particle Swarm Optimisation a special kind of stochastic optimisation using particles exploring the state space implements contraction, ring or random topology see www.swarmintelligence.org for additional information
| Field Summary | |
|---|---|
static float |
c1
'cognitive'component weight in speed formula parameter (default 2.0) |
static float |
c2
'social' component weight in speed formula parameter (default 2.0) |
static float |
c3
'social' component weight in speed formula parameter (default 0.1) |
static boolean |
contract
flag for contraction variant in PSO set to true if contraction is desired (default false) |
static float |
contractDelta
contraction step delta (default .01) |
static float |
contraction
contraction current value (default 1.0) |
static int |
contractStep
step after which contraction is applied (default 100) |
PsoParticle |
currParticle
current particle being evaluated |
static int |
dimension
parameter space dimension |
static Candidate |
globalBest
best solution found |
static int |
nRandNeighbour
number of random neighbours (default 3) |
static int |
nStep
algorithm step counter |
static float |
omega
inertia in speed formula parameter (default 0.9) |
static boolean |
ringNeighbour
flag for ring topology |
static int |
size
number of particle in swarm (default 10) |
static boolean |
stochastic
flag for stochastic variant in PSO set to true if stochasticity is desired (default false) |
java.util.ArrayList<PsoParticle> |
swarm
array of particles |
| Constructor Summary | |
|---|---|
PSOEngine(int _dim,
Performance _perf)
|
|
| Method Summary | |
|---|---|
void |
add(PsoParticle _p)
|
void |
computeCurrParticle()
|
void |
initialise()
initialises the pso engine |
void |
updateCurrParticle(float _perform)
updates the current particle with the performance result and prepares the evaluation of a new particle |
void |
updateSwarm()
performs operations needed when closing a step of the PSO algorithm: 1. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.ArrayList<PsoParticle> swarm
public static int size
public static int dimension
public static int nStep
public PsoParticle currParticle
public static Candidate globalBest
public static boolean ringNeighbour
public static int nRandNeighbour
public static float omega
public static float c1
public static float c2
public static boolean contract
public static float contraction
public static float contractDelta
public static int contractStep
public static boolean stochastic
public static float c3
| Constructor Detail |
|---|
public PSOEngine(int _dim,
Performance _perf)
| Method Detail |
|---|
public void initialise()
public void updateCurrParticle(float _perform)
_perf - public void computeCurrParticle()
public void updateSwarm()
public void add(PsoParticle _p)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||