|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.pso.velocityupdatestrategies.StandardVelocityUpdate net.sourceforge.cilib.pso.velocityupdatestrategies.GCVelocityUpdateStrategy
public class GCVelocityUpdateStrategy
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:
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 |
---|
public GCVelocityUpdateStrategy()
public GCVelocityUpdateStrategy(GCVelocityUpdateStrategy copy)
copy
- The instance to copy.Method Detail |
---|
public GCVelocityUpdateStrategy getClone()
getClone
in interface VelocityUpdateStrategy
getClone
in interface Cloneable
getClone
in class StandardVelocityUpdate
Object.clone()
public void updateVelocity(Particle particle)
updateVelocity
in interface VelocityUpdateStrategy
updateVelocity
in class StandardVelocityUpdate
particle
- The Particle velocity that should be updated.public void updateControlParameters(Particle particle)
updateControlParameters
in interface VelocityUpdateStrategy
updateControlParameters
in class StandardVelocityUpdate
particle
- The particle for whom the VelocityUpdateStrategy parameters need to be updated.public ControlParameter getRhoLowerBound()
rho
.
rho
.public void setRhoLowerBound(ControlParameter rhoLowerBound)
rho
.
rhoLowerBound
- The lower-bound to set.public ControlParameter getRho()
rho
.
rho
.public void setRho(ControlParameter rho)
rho
.
rho
- The value to set.public int getSuccessCountThreshold()
public void setSuccessCountThreshold(int successCountThreshold)
successCountThreshold
- The value to set.public int getFailureCountThreshold()
public void setFailureCountThreshold(int failureCountThreshold)
failureCountThreshold
- The value to set.public ControlParameter getRhoExpandCoefficient()
rho
expansion.
public void setRhoExpandCoefficient(ControlParameter rhoExpandCoefficient)
rhoExpandCoefficient
- The value to set.public ControlParameter getRhoContractCoefficient()
rho
contraction.
public void setRhoContractCoefficient(ControlParameter rhoContractCoefficient)
rhoContractCoefficient
- The value to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |