Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3207


Ignore:
Timestamp:
03/24/10 18:04:25 (14 years ago)
Author:
abeham
Message:

Renamed SelfAdaptiveNormalAllPositionsManipulator to NormalAllPositionsManipulator
Moved move generators
#890

Location:
trunk/sources
Files:
1 deleted
2 edited
2 copied
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj

    r3197 r3207  
    107107    <Compile Include="Interfaces\IRealVectorMoveGenerator.cs" />
    108108    <Compile Include="Interfaces\IRealVectorMoveOperator.cs" />
     109    <Compile Include="Manipulators\NormalAllPositionsManipulator.cs" />
    109110    <Compile Include="Moves\AdditiveMoveTabuAttribute.cs" />
    110111    <Compile Include="Moves\AdditiveTabuMoveEvaluator.cs" />
    111112    <Compile Include="Moves\AdditiveTabuMoveMaker.cs" />
    112     <Compile Include="Moves\Polynomial\StochasticNormalMultiMoveGenerator.cs" />
    113     <Compile Include="Moves\Polynomial\StochasticPolynomialMultiMoveGenerator.cs" />
    114113    <Compile Include="Moves\AdditiveMoveMaker.cs" />
    115114    <Compile Include="Moves\AdditiveMove.cs" />
    116115    <Compile Include="Moves\AdditiveMoveGenerator.cs" />
     116    <Compile Include="Moves\StochasticNormalMultiMoveGenerator.cs" />
     117    <Compile Include="Moves\StochasticPolynomialMultiMoveGenerator.cs" />
    117118    <Compile Include="RealVector.cs" />
    118119    <Compile Include="Manipulators\BreederGeneticAlgorithmManipulator.cs" />
     
    123124    <Compile Include="Manipulators\MichalewiczNonUniformOnePositionManipulator.cs" />
    124125    <Compile Include="Manipulators\PolynomialOnePositionManipulator.cs" />
    125     <Compile Include="Manipulators\SelfAdaptiveNormalAllPositionsManipulator.cs" />
    126126    <Compile Include="Manipulators\UniformOnePositionManipulator.cs" />
    127127    <None Include="HeuristicLab.snk" />
  • trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/NormalAllPositionsManipulator.cs

    r3206 r3207  
    3636  /// The strategy vector can be of smaller length than the solution vector, in which case values are taken from the beginning again once the end of the strategy vector is reached.
    3737  /// </remarks>
    38   [Item("SelfAdaptiveNormalAllPositionsManipulator", "This manipulation operator adds a value sigma_i * N(0,1) to the current value in each position i. The values for sigma_i are taken from the strategy vector. It is implemented as described in Beyer, H.-G. and Schwefel, H.-P. 2002. Evolution Strategies - A Comprehensive Introduction Natural Computing, 1, pp. 3-52.")]
     38  [Item("NormalAllPositionsManipulator", "This manipulation operator adds a value sigma_i * N(0,1) to the current value in each position i. The values for sigma_i are taken from the strategy vector, if there are less elements in the strategy vector than positions, then the strategy vector is cycled. It is implemented as described in Beyer, H.-G. and Schwefel, H.-P. 2002. Evolution Strategies - A Comprehensive Introduction Natural Computing, 1, pp. 3-52.")]
    3939  [StorableClass]
    40   public class SelfAdaptiveNormalAllPositionsManipulator : RealVectorManipulator {
     40  public class NormalAllPositionsManipulator : RealVectorManipulator {
    4141    /// <summary>
    4242    /// Parameter for the strategy vector.
    4343    /// </summary>
    44     public LookupParameter<RealVector> StrategyVectorParameter {
    45       get { return (LookupParameter<RealVector>)Parameters["StrategyVector"]; }
     44    public ValueLookupParameter<RealVector> StrategyVectorParameter {
     45      get { return (ValueLookupParameter<RealVector>)Parameters["StrategyVector"]; }
    4646    }
    4747    /// <summary>
    48     /// Initializes a new instance of <see cref="SelfAdaptiveNormalAllPositionsManipulator"/> with one
     48    /// Initializes a new instance of <see cref="NormalAllPositionsManipulator"/> with one
    4949    /// parameter (<c>StrategyVector</c>).
    5050    /// </summary>
    51     public SelfAdaptiveNormalAllPositionsManipulator()
     51    public NormalAllPositionsManipulator()
    5252      : base() {
    53       Parameters.Add(new LookupParameter<RealVector>("StrategyVector", "The vector containing the endogenous strategy parameters."));
     53      Parameters.Add(new ValueLookupParameter<RealVector>("StrategyVector", "The vector containing the endogenous strategy parameters."));
    5454    }
    5555
     
    7777    /// <param name="realVector">The vector of real values that is manipulated.</param>
    7878    protected override void Manipulate(IRandom random, RealVector realVector) {
    79       if (StrategyVectorParameter.ActualValue == null) throw new InvalidOperationException("SelfAdaptiveNormalAllPositionsManipulator: Parameter " + StrategyVectorParameter.ActualName + " could not be found.");
     79      if (StrategyVectorParameter.ActualValue == null) throw new InvalidOperationException("NormalAllPositionsManipulator: The strategy vector parameter could not be found and does not have an associated value.");
    8080      Apply(random, realVector, StrategyVectorParameter.ActualValue);
    8181    }
Note: See TracChangeset for help on using the changeset viewer.