net.sourceforge.jswarm_pso
Class SwarmRepulsive

java.lang.Object
  extended by net.sourceforge.jswarm_pso.Swarm
      extended by net.sourceforge.jswarm_pso.SwarmRepulsive

public class SwarmRepulsive
extends Swarm

A swarm of repulsive particles

Author:
Pablo Cingolani

Field Summary
static double DEFAULT_OTHER_PARTICLE_INCREMENT
           
static double DEFAULT_RANDOM_INCREMENT
           
(package private)  double otherParticleIncrement
          Other particle increment
(package private)  double randomIncrement
          Random increment
 
Fields inherited from class net.sourceforge.jswarm_pso.Swarm
bestFitness, bestParticleIndex, bestPosition, DEFAULT_GLOBAL_INCREMENT, DEFAULT_INERTIA, DEFAULT_NUMBER_OF_PARTICLES, DEFAULT_PARTICLE_INCREMENT, fitnessFunction, globalIncrement, inertia, maxPosition, maxVelocity, minPosition, minVelocity, numberOfEvaliations, numberOfParticles, particleIncrement, particles, particleUpdate, sampleParticle, variablesUpdate, VELOCITY_GRAPH_FACTOR
 
Constructor Summary
SwarmRepulsive(int numberOfParticles, Particle sampleParticle, FitnessFunction fitnessFunction)
          Create a Swarm and set default values
 
Method Summary
 double getOtherParticleIncrement()
           
 double getRandomIncrement()
           
 void setOtherParticleIncrement(double otherParticleIncrement)
           
 void setRandomIncrement(double randomIncrement)
           
 
Methods inherited from class net.sourceforge.jswarm_pso.Swarm
evaluate, evolve, getBestFitness, getBestParticle, getBestParticleIndex, getBestPosition, getFitnessFunction, getGlobalIncrement, getInertia, getMaxPosition, getMaxVelocity, getMinPosition, getMinVelocity, getNumberOfEvaliations, getNumberOfParticles, getParticle, getParticleIncrement, getParticles, getParticleUpdate, getSampleParticle, getVariablesUpdate, init, setBestParticleIndex, setBestPosition, setFitnessFunction, setGlobalIncrement, setInertia, setMaxMinVelocity, setMaxPosition, setMaxPosition, setMaxVelocity, setMinPosition, setMinPosition, setMinVelocity, setNumberOfEvaliations, setNumberOfParticles, setParticleIncrement, setParticles, setParticleUpdate, setSampleParticle, setVariablesUpdate, show, size, toString, toStringStats, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_OTHER_PARTICLE_INCREMENT

public static double DEFAULT_OTHER_PARTICLE_INCREMENT

DEFAULT_RANDOM_INCREMENT

public static double DEFAULT_RANDOM_INCREMENT

otherParticleIncrement

double otherParticleIncrement
Other particle increment


randomIncrement

double randomIncrement
Random increment

Constructor Detail

SwarmRepulsive

public SwarmRepulsive(int numberOfParticles,
                      Particle sampleParticle,
                      FitnessFunction fitnessFunction)
Create a Swarm and set default values

Parameters:
numberOfParticles - : Number of particles in this swarm (should be greater than 0). If unsure about this parameter, try Swarm.DEFAULT_NUMBER_OF_PARTICLES or greater
sampleParticle - : A particle that is a sample to build all other particles
fitnessFunction - : Fitness function used to evaluate each particle
Method Detail

getOtherParticleIncrement

public double getOtherParticleIncrement()

getRandomIncrement

public double getRandomIncrement()

setOtherParticleIncrement

public void setOtherParticleIncrement(double otherParticleIncrement)

setRandomIncrement

public void setRandomIncrement(double randomIncrement)