|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.entity.AbstractEntity net.sourceforge.cilib.pso.particle.AbstractParticle net.sourceforge.cilib.pso.particle.ParticleDecorator net.sourceforge.cilib.pso.particle.LFDecorator
public class LFDecorator
LFDecorator.
Field Summary |
---|
Fields inherited from class net.sourceforge.cilib.pso.particle.AbstractParticle |
---|
neighbourhoodBestUpdateStrategy, personalBestUpdateStrategy, positionInitialisationStrategy, positionUpdateStrategy, velocityInitialisationStrategy, velocityUpdateStrategy |
Constructor Summary | |
---|---|
LFDecorator(Particle target)
Creates a new instance of LFParticleDecorator. |
Method Summary | |
---|---|
void |
calculateFitness()
Calculate the fitness of the Entity incrementing the
number of fitness evaluations for the algorithm. |
static LFDecorator |
extract(Particle particle)
Deprecated. |
LFDecorator |
getClone()
Make a clone of the Entity the exact semantics of the clone method will be defined by the classes that implements this interface. |
double |
getDefaultDeltaT()
Returns the algorithm parameter variable deltaT. |
double |
getDelta()
Returns the algorithm parameter variable delta. |
double |
getDelta1()
Returns the algorithm parameter variable delta1. |
double |
getDeltaT()
Returns the algorithm parameter variable deltaT. |
double |
getEpsilon()
Returns the algorithm parameter variable epsilon. |
double[] |
getGradient()
Returns the gradient of the particle. |
int |
getI()
Returns the algorithm state variable i. |
int |
getJ()
Returns the algorithm state variable j. |
int |
getM()
Returns the algorithm state variable m. |
double[] |
getNextGradient()
Returns the array used to store the future gradient of the particle. |
double |
getP()
Returns the algorithm state variable p. |
Vector |
getPreviousPosition()
Returns the position of the particle in the previous step. |
Vector |
getPreviousVelocity()
Returns the velocity of the particle in the previous step. |
int |
getS()
Returns the algorithm state variable s. |
boolean |
getWasNeighbourhoodBest()
Returns the algorithm state variable indicating whether the particle was the neighbourhood best in the previous iteration of the algorithm. |
void |
initialise(OptimisationProblemAdapter problem)
|
void |
setDefaultDeltaT(double defaultDeltaT)
Sets the algorithm parameter variable deltaT. |
void |
setDelta(double delta)
Sets the algorithm state variable delta. |
void |
setDelta1(double delta1)
Sets the algorithm parameter variable delta1. |
void |
setDeltaT(double deltaT)
Sets the algorithm parameter variable deltaT. |
void |
setEpsilon(double epsilon)
Sets the algorithm parameter variable epsilon. |
void |
setI(int i)
Sets the algorithm state variable i. |
void |
setJ(int j)
Sets the algorithm state variable j. |
void |
setM(int m)
|
void |
setP(double p)
Sets the algorithm state variable p. |
void |
setS(int s)
Sets the algorithm state variable s. |
void |
setWasNeighbourhoodBest(boolean wasNeighbourhoodBest)
Sets the algorithm state variable indicating whether the particle was the neighbourhood best in the previous iteration of the algorithm. |
void |
updateVelocity(VelocityUpdateStrategy vu)
|
Methods inherited from class net.sourceforge.cilib.pso.particle.ParticleDecorator |
---|
calculateFitness, compareTo, equals, getBehaviouralParameters, getBestFitness, getBestPosition, getCandidateSolution, getDimension, getFitness, getId, getNeighbourhoodBest, getPosition, getTarget, getVelocity, getVelocityUpdateStrategy, hashCode, initialise, reinitialise, setBehaviouralParameters, setCandidateSolution, setDimension, setNeighbourhoodBest, setTarget, setVelocityUpdateStrategy, updateControlParameters, updatePosition, updateVelocity |
Methods inherited from class net.sourceforge.cilib.entity.AbstractEntity |
---|
getFitnessCalculator, getProperties, setFitnessCalculator, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.cilib.entity.Entity |
---|
getFitnessCalculator, getProperties, setProperties |
Constructor Detail |
---|
public LFDecorator(Particle target)
Method Detail |
---|
public LFDecorator getClone()
AbstractParticle
getClone
in interface Entity
getClone
in interface Particle
getClone
in interface Cloneable
getClone
in class ParticleDecorator
Object.clone()
public void calculateFitness()
AbstractParticle
Entity
incrementing the
number of fitness evaluations for the algorithm.
calculateFitness
in interface Entity
calculateFitness
in class AbstractParticle
public void updateVelocity(VelocityUpdateStrategy vu)
@Deprecated public static LFDecorator extract(Particle particle)
particle
-
public void initialise(OptimisationProblemAdapter problem)
public boolean getWasNeighbourhoodBest()
public void setWasNeighbourhoodBest(boolean wasNeighbourhoodBest)
public double getDelta()
public void setDelta(double delta)
public double getDeltaT()
public void setDeltaT(double deltaT)
public double getDefaultDeltaT()
public void setDefaultDeltaT(double defaultDeltaT)
public double getP()
public void setP(double p)
public double getDelta1()
public void setDelta1(double delta1)
public int getS()
public void setS(int s)
public int getM()
public void setM(int m)
public int getI()
public void setI(int i)
public int getJ()
public void setJ(int j)
public double getEpsilon()
public void setEpsilon(double epsilon)
public Vector getPreviousPosition()
public Vector getPreviousVelocity()
public double[] getGradient()
public double[] getNextGradient()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |