Free cookie consent management tool by TermsFeed Policy Generator

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

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.