net.sourceforge.cilib.pso
Class LFPSO
java.lang.Object
net.sourceforge.cilib.algorithm.Algorithm
net.sourceforge.cilib.algorithm.population.PopulationBasedAlgorithm
net.sourceforge.cilib.algorithm.population.SinglePopulationBasedAlgorithm
net.sourceforge.cilib.pso.PSO
net.sourceforge.cilib.pso.LFPSO
- All Implemented Interfaces:
- Serializable, Runnable, GradientOptimisationAlgorithm, ParticipatingAlgorithm, Cloneable
public class LFPSO
- extends PSO
- implements GradientOptimisationAlgorithm
An implementation of the LeapFrog PSO algorithm, a modified Particle Swarm Optimiser
based upon the improved leapfrog dynamic method for unconstrained minimization.
References:
-
J.A. Snyman, "A new and dynamic method for unconstrained minimization", Applied
Mathematical Modelling, 1982, Vol. 6, December.
-
J.A. Snyman, "An improved version of the original leapfrog dynamic method for unconstained
minimization", Applied Mathematical Modelling, 1983, Vol. 7, June.
- Author:
- barlad
TODO:: Need Global best update strategies
- See Also:
- Serialized Form
Constructor Summary |
LFPSO()
Creates a new instance of LFPSO . |
Methods inherited from class net.sourceforge.cilib.pso.PSO |
algorithmIteration, getBestSolution, getClone, getContribution, getContributionFitness, getIterationStrategy, getSolutions, getTopology, performInitialisation, reset, setIterationStrategy, setTopology, updateContributionFitness |
Methods inherited from class net.sourceforge.cilib.algorithm.Algorithm |
addAlgorithmListener, addStoppingCondition, get, getAlgorithmList, getIterations, getOptimisationProblem, getPercentageComplete, getStoppingConditions, initialise, isFinished, performIteration, performUninitialisation, removeAlgorithmListener, removeStoppingCondition, run, setOptimisationProblem, terminate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LFPSO
public LFPSO()
- Creates a new instance of
LFPSO
. All fields are initialised to
reasonable defaults. Note that the GradientOptimisationProblem
is initially null
and must be set before Algorithm.initialise()
is called.
setPrototypeParticle
public void setPrototypeParticle(Particle particle)
setVelocityUpdate
public void setVelocityUpdate(VelocityUpdateStrategy vu)
getGradientEvaluations
public int getGradientEvaluations()
- Returns the number of times the gradient of the function was evaluated.
Not implemented yet.
- Specified by:
getGradientEvaluations
in interface GradientOptimisationAlgorithm
- Returns:
- The number of gradient evaluations.
getGradientOptimisationProblem
public GradientOptimisationProblem getGradientOptimisationProblem()
- Description copied from interface:
GradientOptimisationAlgorithm
- Accessor for the optimisation problem to be solved.
- Specified by:
getGradientOptimisationProblem
in interface GradientOptimisationAlgorithm
- Returns:
- The
OptimisationProblemAdapter
to be solved.
setGradientOptimisationProblem
public void setGradientOptimisationProblem(GradientOptimisationProblem problem)
- Description copied from interface:
GradientOptimisationAlgorithm
- Sets the optimisation problem to be solved.
- Specified by:
setGradientOptimisationProblem
in interface GradientOptimisationAlgorithm
- Parameters:
problem
- The OptimisationProblemAdapter
to be solved.
Copyright © 2009 CIRG. All Rights Reserved.