net.sourceforge.cilib.pso.velocityupdatestrategies
Class GCVelocityUpdateStrategy

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

public class GCVelocityUpdateStrategy
extends StandardVelocityUpdate

An implementation of the Guaranteed Convergence PSO algorithm. The GCPSO is a simple extension to the normal PSO algorithm and the modifications to the algorithm is implemented as a simple VelocityUpdateStrategy

References:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
cognitiveAcceleration, inertiaWeight, socialAcceleration, vMax
 
Constructor Summary
GCVelocityUpdateStrategy()
          Create an instance of the GC Velocity Update strategy.
GCVelocityUpdateStrategy(GCVelocityUpdateStrategy copy)
          Copy constructor.
 
Method Summary
 GCVelocityUpdateStrategy getClone()
          Clone the VelocityUpdateStrategy object.
 int getFailureCountThreshold()
          Get the count of failure threshold.
 ControlParameter getRho()
          Get the current value for rho.
 ControlParameter getRhoContractCoefficient()
          Get the coefficient value for rho contraction.
 ControlParameter getRhoExpandCoefficient()
          Get the coefficient value for rho expansion.
 ControlParameter getRhoLowerBound()
          Get the lower-bound value for rho.
 int getSuccessCountThreshold()
          Get the count of success threshold.
 void setFailureCountThreshold(int failureCountThreshold)
          Set the count of failure threshold.
 void setRho(ControlParameter rho)
          Set the value for rho.
 void setRhoContractCoefficient(ControlParameter rhoContractCoefficient)
          Set the contraction coefficient value.
 void setRhoExpandCoefficient(ControlParameter rhoExpandCoefficient)
          Set the value of the coefficient of expansion.
 void setRhoLowerBound(ControlParameter rhoLowerBound)
          Set the lower-bound value for rho.
 void setSuccessCountThreshold(int successCountThreshold)
          Set the threshold of success count value.
 void updateControlParameters(Particle particle)
          Update the associated ControlParameters for the VelocityUpdateStrategy.
 void updateVelocity(Particle particle)
          Perform the velocity update for the given Particle.
 
Methods inherited from class net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate
clamp, getCognitiveAcceleration, getInertiaWeight, getSocialAcceleration, getVMax, setCognitiveAcceleration, setInertiaWeight, setSocialAcceleration, setVMax
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GCVelocityUpdateStrategy

public GCVelocityUpdateStrategy()
Create an instance of the GC Velocity Update strategy.


GCVelocityUpdateStrategy

public GCVelocityUpdateStrategy(GCVelocityUpdateStrategy copy)
Copy constructor. Copy the given instance.

Parameters:
copy - The instance to copy.
Method Detail

getClone

public GCVelocityUpdateStrategy getClone()
Clone the VelocityUpdateStrategy object.

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

updateVelocity

public void updateVelocity(Particle particle)
Perform the velocity update for the given Particle.

Specified by:
updateVelocity in interface VelocityUpdateStrategy
Overrides:
updateVelocity in class StandardVelocityUpdate
Parameters:
particle - The Particle velocity that should be updated.

updateControlParameters

public void updateControlParameters(Particle particle)
Update the associated ControlParameters for the VelocityUpdateStrategy. Update the needed control parameters for the VelocityUpdate, if needed.

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

getRhoLowerBound

public ControlParameter getRhoLowerBound()
Get the lower-bound value for rho.

Returns:
The lower-bound value for rho.

setRhoLowerBound

public void setRhoLowerBound(ControlParameter rhoLowerBound)
Set the lower-bound value for rho.

Parameters:
rhoLowerBound - The lower-bound to set.

getRho

public ControlParameter getRho()
Get the current value for rho.

Returns:
The current value for rho.

setRho

public void setRho(ControlParameter rho)
Set the value for rho.

Parameters:
rho - The value to set.

getSuccessCountThreshold

public int getSuccessCountThreshold()
Get the count of success threshold.

Returns:
The success threshold.

setSuccessCountThreshold

public void setSuccessCountThreshold(int successCountThreshold)
Set the threshold of success count value.

Parameters:
successCountThreshold - The value to set.

getFailureCountThreshold

public int getFailureCountThreshold()
Get the count of failure threshold.

Returns:
The failure threshold.

setFailureCountThreshold

public void setFailureCountThreshold(int failureCountThreshold)
Set the count of failure threshold.

Parameters:
failureCountThreshold - The value to set.

getRhoExpandCoefficient

public ControlParameter getRhoExpandCoefficient()
Get the coefficient value for rho expansion.

Returns:
The expansion coefficient value.

setRhoExpandCoefficient

public void setRhoExpandCoefficient(ControlParameter rhoExpandCoefficient)
Set the value of the coefficient of expansion.

Parameters:
rhoExpandCoefficient - The value to set.

getRhoContractCoefficient

public ControlParameter getRhoContractCoefficient()
Get the coefficient value for rho contraction.

Returns:
The contraction coefficient value.

setRhoContractCoefficient

public void setRhoContractCoefficient(ControlParameter rhoContractCoefficient)
Set the contraction coefficient value.

Parameters:
rhoContractCoefficient - The value to set.


Copyright © 2009 CIRG. All Rights Reserved.