net.sourceforge.cilib.pso.velocityupdatestrategies
Class BareBonesDEVelocityUpdate

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

public class BareBonesDEVelocityUpdate
extends Object
implements VelocityUpdateStrategy

The VelocityUpdateStrategy strategy which uses a DE strategy where the trial vector is the bare bones attractor point. TODO: To be published by Omran and Engelbrecht

Author:
Andries Engelbrecht
See Also:
Serialized Form

Constructor Summary
BareBonesDEVelocityUpdate()
          Create a new instance of the BareBonesDEVelocityUpdate.
BareBonesDEVelocityUpdate(BareBonesDEVelocityUpdate copy)
          Copy constructor.
 
Method Summary
 BareBonesDEVelocityUpdate getClone()
          Clone the VelocityUpdateStrategy object.
 ControlParameter getCognitive()
          Get the cognitive component.
 ControlParameter getCrossoverProbability()
          Get the cross-over probability.
 RandomNumber getRand1()
          Get the first RandomNumber.
 RandomNumber getRand2()
          Get the secondRandomNumber.
 RandomNumber getRand3()
          Get the third RandomNumber.
static List<Entity> getRandomParentEntities(Topology<? extends Entity> topology)
          Get a list of individuals that are suitable to be used within the recombination arithmetic operator.
 ControlParameter getSocial()
          Get the social component.
 void setCognitive(ControlParameter cognitive)
          Set the cognitive component.
 void setCrossoverProbability(ControlParameter crossoverProbability)
          Set the crossover probability.
 void setRand1(RandomNumber rand1)
          Set the first RandomNumber.
 void setRand2(RandomNumber rand2)
          Set the second RandomNumber.
 void setRand3(RandomNumber rand3)
          Set the third RandomNumber.
 void setSocial(ControlParameter social)
          Set the social component ControlParameter.
 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

BareBonesDEVelocityUpdate

public BareBonesDEVelocityUpdate()
Create a new instance of the BareBonesDEVelocityUpdate.


BareBonesDEVelocityUpdate

public BareBonesDEVelocityUpdate(BareBonesDEVelocityUpdate copy)
Copy constructor. Create a copy of the given instance.

Parameters:
copy - The instance to copy.
Method Detail

getClone

public BareBonesDEVelocityUpdate getClone()
Clone the VelocityUpdateStrategy object.

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

updateVelocity

public void updateVelocity(Particle particle)
Perform the velocity update operation on the specified Particle.

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

getRandomParentEntities

public static List<Entity> getRandomParentEntities(Topology<? extends Entity> topology)
Get a list of individuals that are suitable to be used within the recombination arithmetic operator.

Parameters:
topology - The Topology containing the entites.
Returns:
A list of unique entities.

updateControlParameters

public void updateControlParameters(Particle particle)
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.

getRand1

public RandomNumber getRand1()
Get the first RandomNumber.

Returns:
The first RandomNumber.

setRand1

public void setRand1(RandomNumber rand1)
Set the first RandomNumber.

Parameters:
rand1 - The value to set.

getRand2

public RandomNumber getRand2()
Get the secondRandomNumber.

Returns:
The second RandomNumber.

setRand2

public void setRand2(RandomNumber rand2)
Set the second RandomNumber.

Parameters:
rand2 - The value to set.

getRand3

public RandomNumber getRand3()
Get the third RandomNumber.

Returns:
The third RandomNumber.

setRand3

public void setRand3(RandomNumber rand3)
Set the third RandomNumber.

Parameters:
rand3 - The value to set.

getCognitive

public ControlParameter getCognitive()
Get the cognitive component.

Returns:
The cognitive component.

setCognitive

public void setCognitive(ControlParameter cognitive)
Set the cognitive component.

Parameters:
cognitive - The value to set.

getSocial

public ControlParameter getSocial()
Get the social component.

Returns:
The social component.

setSocial

public void setSocial(ControlParameter social)
Set the social component ControlParameter.

Parameters:
social - The value to set.

getCrossoverProbability

public ControlParameter getCrossoverProbability()
Get the cross-over probability.

Returns:
The cross over probability ControlParameter.

setCrossoverProbability

public void setCrossoverProbability(ControlParameter crossoverProbability)
Set the crossover probability.

Parameters:
crossoverProbability - The value to set.


Copyright © 2009 CIRG. All Rights Reserved.