pso

Class PsoParticle

java.lang.Object
  extended by pso.Candidate
      extended by pso.PsoParticle

public class PsoParticle
extends Candidate

Particle for Particle Swarm Optimisation assumes float parameters see www.swarmintelligence.org for additional information


Field Summary
static float maxParVal
          maximum parameter value
static float maxPosVal
          maximum particle position value
static float maxSpeedVal
          maximum particle speed value
static float minParVal
          minimum parameter value
static float minPosVal
          minimum particle position value
 
Fields inherited from class pso.Candidate
perform, pos
 
Constructor Summary
PsoParticle(java.util.ArrayList<java.lang.Double> _pos)
           
 
Method Summary
 float malusPerformance(float _perf, int n)
          alter performance of particle p when not in parameter domain
static java.util.ArrayList<java.lang.Double> random(int size)
          generates random parameter space vector
 void shuffle()
          shuffles particle and local best information
 void updateParticle()
          change particle position according to pso algorithm formula
 void updatePerformance(float _perform)
          updates the particle performance after checking the position to the specified search domain if not in domain the performance is dramatically altered
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minParVal

public static float minParVal
minimum parameter value


maxParVal

public static float maxParVal
maximum parameter value


minPosVal

public static float minPosVal
minimum particle position value


maxPosVal

public static float maxPosVal
maximum particle position value


maxSpeedVal

public static float maxSpeedVal
maximum particle speed value

Constructor Detail

PsoParticle

public PsoParticle(java.util.ArrayList<java.lang.Double> _pos)
Method Detail

updateParticle

public void updateParticle()
change particle position according to pso algorithm formula


updatePerformance

public void updatePerformance(float _perform)
updates the particle performance after checking the position to the specified search domain if not in domain the performance is dramatically altered

Parameters:
_perform -

malusPerformance

public float malusPerformance(float _perf,
                              int n)
alter performance of particle p when not in parameter domain

Parameters:
_perf -
Returns:
updated performance

shuffle

public void shuffle()
shuffles particle and local best information


random

public static java.util.ArrayList<java.lang.Double> random(int size)
generates random parameter space vector

Parameters:
size -
Returns: