Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8132 for trunk/sources


Ignore:
Timestamp:
06/27/12 11:41:13 (12 years ago)
Author:
gkronber
Message:

#1876 added keys for signing of the LawnMower plugin. Added a unit test for the lawn mower problem.

Location:
trunk/sources
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.LawnMower.Views/3.3/HeuristicLab.Problems.LawnMower.Views.csproj

    r8059 r8132  
    9797    <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
    9898  </PropertyGroup>
     99  <PropertyGroup>
     100    <SignAssembly>true</SignAssembly>
     101  </PropertyGroup>
     102  <PropertyGroup>
     103    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     104  </PropertyGroup>
    99105  <ItemGroup>
    100106    <Reference Include="System" />
     
    116122      <DependentUpon>SolutionProgramView.cs</DependentUpon>
    117123    </Compile>
     124    <None Include="HeuristicLab.snk" />
    118125    <None Include="Plugin.cs.frame" />
    119126    <None Include="Properties\AssemblyInfo.cs.frame" />
  • trunk/sources/HeuristicLab.Problems.LawnMower/3.3/HeuristicLab.Problems.LawnMower.csproj

    r8059 r8132  
    9696    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    9797  </PropertyGroup>
     98  <PropertyGroup>
     99    <SignAssembly>true</SignAssembly>
     100  </PropertyGroup>
     101  <PropertyGroup>
     102    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
     103  </PropertyGroup>
    98104  <ItemGroup>
    99105    <Reference Include="HeuristicLab.Common-3.3">
     
    106112  <ItemGroup>
    107113    <Compile Include="BestSolutionAnalyzer.cs" />
     114    <None Include="HeuristicLab.snk" />
    108115    <None Include="Plugin.cs.frame" />
    109116    <Compile Include="Interpreter.cs" />
  • trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/SamplesTest.cs

    r7915 r8132  
    439439    }
    440440    #endregion
     441    #region LawnMower
     442    [TestMethod]
     443    public void RunGpLawnMowerSampleTest() {
     444      var ga = CreateGpLawnMowerSample();
     445      ga.SetSeedRandomly.Value = false;
     446      RunAlgorithm(ga);
     447    }
     448
     449    public GeneticAlgorithm CreateGpLawnMowerSample() {
     450      GeneticAlgorithm ga = new GeneticAlgorithm();
     451      #region Problem Configuration
     452      var problem = new HeuristicLab.Problems.LawnMower.Problem();
     453      #endregion
     454      #region Algorithm Configuration
     455      ga.Name = "Genetic Programming - Lawn Mower";
     456      ga.Description = "A standard genetic programming algorithm to solve the lawn mower problem";
     457      ga.Problem = problem;
     458      ConfigureGeneticAlgorithmParameters<TournamentSelector, SubtreeCrossover, MultiSymbolicExpressionTreeArchitectureManipulator>(
     459        ga, 1000, 1, 50, 0.25, 5);
     460      var mutator = (MultiSymbolicExpressionTreeArchitectureManipulator)ga.Mutator;
     461      mutator.Operators.SetItemCheckedState(mutator.Operators
     462        .OfType<OnePointShaker>()
     463        .Single(), false);
     464      #endregion
     465      return ga;
     466    }
     467    #endregion
    441468    #endregion
    442469
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Tests.csproj

    r8121 r8132  
    224224    <Reference Include="HeuristicLab.Problems.Knapsack-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    225225      <HintPath>..\bin\HeuristicLab.Problems.Knapsack-3.3.dll</HintPath>
     226    </Reference>
     227    <Reference Include="HeuristicLab.Problems.LawnMower-3.3">
     228      <HintPath>..\bin\HeuristicLab.Problems.LawnMower-3.3.dll</HintPath>
    226229    </Reference>
    227230    <Reference Include="HeuristicLab.Problems.LinearAssignment-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
Note: See TracChangeset for help on using the changeset viewer.