Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13056


Ignore:
Timestamp:
10/22/15 20:20:54 (9 years ago)
Author:
gkronber
Message:

#2472: changed GP artificial ant sample to use new implementation

Location:
trunk/sources/HeuristicLab.Tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/Samples/GPArtificialAntSampleTest.cs

    r12012 r13056  
    2525using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2626using HeuristicLab.Persistence.Default.Xml;
    27 using HeuristicLab.Problems.ArtificialAnt;
     27using HeuristicLab.Problems.GeneticProgramming.ArtificialAnt;
    2828using HeuristicLab.Selection;
    2929using Microsoft.VisualStudio.TestTools.UnitTesting;
     
    6060
    6161      #region Problem Configuration
    62       ArtificialAntProblem antProblem = new ArtificialAntProblem();
    63       antProblem.BestKnownQuality.Value = 89;
    64       antProblem.MaxExpressionDepth.Value = 10;
    65       antProblem.MaxExpressionLength.Value = 100;
    66       antProblem.MaxFunctionArguments.Value = 3;
    67       antProblem.MaxFunctionDefinitions.Value = 3;
     62      Problem antProblem = new Problem();
     63      antProblem.BestKnownQuality = 89;
     64      antProblem.Encoding.TreeDepth = 10;
     65      antProblem.Encoding.TreeLength = 100;
     66      antProblem.Encoding.FunctionDefinitions = 3;
     67      antProblem.Encoding.FunctionArguments = 3;
    6868      antProblem.MaxTimeSteps.Value = 600;
    6969      #endregion
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Tests.csproj

    r13025 r13056  
    296296      <SpecificVersion>False</SpecificVersion>
    297297      <HintPath>..\bin\HeuristicLab.Problems.ExternalEvaluation.Views-3.4.dll</HintPath>
     298      <Private>False</Private>
     299    </Reference>
     300    <Reference Include="HeuristicLab.Problems.GeneticProgramming-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
     301      <SpecificVersion>False</SpecificVersion>
     302      <HintPath>..\bin\HeuristicLab.Problems.GeneticProgramming-3.3.dll</HintPath>
    298303      <Private>False</Private>
    299304    </Reference>
Note: See TracChangeset for help on using the changeset viewer.