Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/02/10 18:01:49 (14 years ago)
Author:
abeham
Message:

Added test project for RealVector
Updated documentation in BLX-a #890

Location:
trunk/sources/HeuristicLab.Encodings.RealVector/3.3
Files:
10 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.RealVector/3.3/Crossovers/BlendAlphaCrossover.cs

    r2913 r2914  
    5555    /// Here min_i and max_i are the smaller and larger value of the two parents at position i and d is max_i - min_i.
    5656    /// </summary>
    57     /// <exception cref="ArgumentException">Thrown when <paramref name="parent1"/> and <paramref name="parent2"/> are of different length.</exception>
     57    /// <exception cref="ArgumentException">
     58    /// Thrown when <paramref name="parent1"/> and <paramref name="parent2"/> are of different length or<br/>
     59    /// when <paramref name="alpha"/> is less than 0.
     60    /// </exception>
    5861    /// <param name="random">The random number generator.</param>
    5962    /// <param name="parent1">The first parent for the crossover operation.</param>
     
    6366    public static DoubleArrayData Apply(IRandom random, DoubleArrayData parent1, DoubleArrayData parent2, DoubleData alpha) {
    6467      if (parent1.Length != parent2.Length) throw new ArgumentException("BlendAlphaCrossover: The parents' vectors are of different length.", "parent1");
     68      if (alpha.Value < 0) throw new ArgumentException("BlendAlphaCrossover: Paramter alpha must be greater or equal than 0.", "alpha");
    6569      int length = parent1.Length;
    6670      DoubleArrayData result = new DoubleArrayData(length);
  • trunk/sources/HeuristicLab.Encodings.RealVector/3.3/HeuristicLab.Encodings.RealVector-3.3.csproj

    r2913 r2914  
    9696    </Compile>
    9797    <Compile Include="HeuristicLabEncodingsRealVectorPlugin.cs" />
     98    <Compile Include="Manipulators\UniformOnePositionManipulator.cs" />
    9899    <None Include="HeuristicLab.snk" />
    99100    <None Include="Properties\AssemblyInfo.frame" />
     
    137138    </ProjectReference>
    138139  </ItemGroup>
    139   <ItemGroup>
    140     <Folder Include="Manipulators\" />
    141   </ItemGroup>
    142140  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    143141  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset for help on using the changeset viewer.