net.sourceforge.jswarm_pso
Class SwarmRepulsive
java.lang.Object
net.sourceforge.jswarm_pso.Swarm
net.sourceforge.jswarm_pso.SwarmRepulsive
public class SwarmRepulsive
- extends Swarm
A swarm of repulsive particles
- Author:
- Pablo Cingolani
| 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 |
| 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 |
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
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 greatersampleParticle - : A particle that is a sample to build all other particlesfitnessFunction - : Fitness function used to evaluate each particle
getOtherParticleIncrement
public double getOtherParticleIncrement()
getRandomIncrement
public double getRandomIncrement()
setOtherParticleIncrement
public void setOtherParticleIncrement(double otherParticleIncrement)
setRandomIncrement
public void setRandomIncrement(double randomIncrement)