net.sourceforge.cilib.ec.iterationstrategies
Class DifferentialEvolutionIterationStrategy

java.lang.Object
  extended by net.sourceforge.cilib.algorithm.population.AbstractIterationStrategy<EC>
      extended by net.sourceforge.cilib.ec.iterationstrategies.DifferentialEvolutionIterationStrategy
All Implemented Interfaces:
Serializable, IterationStrategy<EC>, Cloneable

public class DifferentialEvolutionIterationStrategy
extends AbstractIterationStrategy<EC>

Evolutionary Strategy to implement the Differential Evolutionary Algorithm.

Author:
Gary Pampara
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cilib.algorithm.population.AbstractIterationStrategy
boundaryConstraint, operatorPipeline
 
Constructor Summary
DifferentialEvolutionIterationStrategy()
          Create an instance of the DifferentialEvolutionIterationStrategy.
DifferentialEvolutionIterationStrategy(DifferentialEvolutionIterationStrategy copy)
          Copy constructor.
 
Method Summary
 DifferentialEvolutionIterationStrategy getClone()
          Create a cloned copy of the current object and return it.
 CrossoverStrategy getCrossoverStrategy()
          Get the CrossoverStrategy used to create offspring entities.
 SelectionStrategy getTargetVectorSelectionStrategy()
          Obtain the SelectionStrategy used to select the target vector.
 CreationStrategy getTrialVectorCreationStrategy()
          Get the current strategy for creation of the trial vector.
 void performIteration(EC ec)
          Perform an iteration of the DE algorithm defined as the DE/x/y/z implementation.
 void setCrossoverStrategy(CrossoverStrategy crossoverStrategy)
          Set the CrossoverStrategy used to create offspring entities.
 void setTargetVectorSelectionStrategy(SelectionStrategy targetVectorSelectionStrategy)
          Set the SelectionStrategy used to select the target vector within the DE.
 void setTrialVectorCreationStrategy(CreationStrategy trialVectorCreationStrategy)
          Set the strategy to create trial vectors.
 
Methods inherited from class net.sourceforge.cilib.algorithm.population.AbstractIterationStrategy
getBoundaryConstraint, getOperatorPipeline, setBoundaryConstraint, setOperatorPipeline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DifferentialEvolutionIterationStrategy

public DifferentialEvolutionIterationStrategy()
Create an instance of the DifferentialEvolutionIterationStrategy.


DifferentialEvolutionIterationStrategy

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

Parameters:
copy - The instance to copy.
Method Detail

getClone

public DifferentialEvolutionIterationStrategy getClone()
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface IterationStrategy<EC>
Specified by:
getClone in interface Cloneable
Specified by:
getClone in class AbstractIterationStrategy<EC>
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

performIteration

public void performIteration(EC ec)
Perform an iteration of the DE algorithm defined as the DE/x/y/z implementation.

Specified by:
performIteration in interface IterationStrategy<EC>
Specified by:
performIteration in class AbstractIterationStrategy<EC>
Parameters:
ec - The EC on which to perform this iteration.

getTargetVectorSelectionStrategy

public SelectionStrategy getTargetVectorSelectionStrategy()
Obtain the SelectionStrategy used to select the target vector.

Returns:
The SelectionStrategy of the target vector.

setTargetVectorSelectionStrategy

public void setTargetVectorSelectionStrategy(SelectionStrategy targetVectorSelectionStrategy)
Set the SelectionStrategy used to select the target vector within the DE.

Parameters:
targetVectorSelectionStrategy - The SelectionStrategy to use for the selection of the target vector.

getCrossoverStrategy

public CrossoverStrategy getCrossoverStrategy()
Get the CrossoverStrategy used to create offspring entities.

Returns:
The CrossoverStrategy used to create offspring.

setCrossoverStrategy

public void setCrossoverStrategy(CrossoverStrategy crossoverStrategy)
Set the CrossoverStrategy used to create offspring entities.

Parameters:
crossoverStrategy - The CrossoverStrategy to create entities.

getTrialVectorCreationStrategy

public CreationStrategy getTrialVectorCreationStrategy()
Get the current strategy for creation of the trial vector.

Returns:
The CreationStrategy.

setTrialVectorCreationStrategy

public void setTrialVectorCreationStrategy(CreationStrategy trialVectorCreationStrategy)
Set the strategy to create trial vectors.

Parameters:
trialVectorCreationStrategy - The value to set.


Copyright © 2009 CIRG. All Rights Reserved.