net.sourceforge.cilib.pso.velocityupdatestrategies
Class LFVelocityUpdate

java.lang.Object
  extended by net.sourceforge.cilib.pso.velocityupdatestrategies.LFVelocityUpdate
All Implemented Interfaces:
Serializable, VelocityUpdateStrategy, Cloneable

public class LFVelocityUpdate
extends Object
implements VelocityUpdateStrategy

Author:
barlad
See Also:
Serialized Form

Constructor Summary
LFVelocityUpdate()
          Creates a new instance of LFVelocityUpdate.
LFVelocityUpdate(LFVelocityUpdate copy)
           
 
Method Summary
 LFVelocityUpdate getClone()
          Clone the VelocityUpdateStrategy object.
 Vector getGradient(Vector position)
          Returns the gradient of the problem function at the given position.
 StandardVelocityUpdate getStandardVelocityUpdate()
           
 void setGradientOptimisationProblem(GradientOptimisationProblem problem)
           
 void setStandardVelocityUpdate(StandardVelocityUpdate standard)
           
 void updateControlParameters(Particle particle)
          Update the needed control parameters for the VelocityUpdate, if needed.
 void updateVelocity(Particle particle)
          Perform the velocity update operation on the specified Particle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LFVelocityUpdate

public LFVelocityUpdate()
Creates a new instance of LFVelocityUpdate.


LFVelocityUpdate

public LFVelocityUpdate(LFVelocityUpdate copy)
Method Detail

getClone

public LFVelocityUpdate getClone()
Description copied from interface: VelocityUpdateStrategy
Clone the VelocityUpdateStrategy object.

Specified by:
getClone in interface VelocityUpdateStrategy
Specified by:
getClone in interface Cloneable
Returns:
A cloned VelocityUpdateStrategy
See Also:
Object.clone()

setStandardVelocityUpdate

public void setStandardVelocityUpdate(StandardVelocityUpdate standard)

getStandardVelocityUpdate

public StandardVelocityUpdate getStandardVelocityUpdate()

updateVelocity

public void updateVelocity(Particle particle)
Description copied from interface: VelocityUpdateStrategy
Perform the velocity update operation on the specified Particle.

Specified by:
updateVelocity in interface VelocityUpdateStrategy
Parameters:
particle - The Particle to apply the operation on.

setGradientOptimisationProblem

public void setGradientOptimisationProblem(GradientOptimisationProblem problem)

getGradient

public Vector getGradient(Vector position)
Returns the gradient of the problem function at the given position.


updateControlParameters

public void updateControlParameters(Particle particle)
Description copied from interface: VelocityUpdateStrategy
Update the needed control parameters for the VelocityUpdate, if needed.

Specified by:
updateControlParameters in interface VelocityUpdateStrategy
Parameters:
particle - The particle for whom the VelocityUpdateStrategy parameters need to be updated.


Copyright © 2009 CIRG. All Rights Reserved.