Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/01/15 19:49:25 (10 years ago)
Author:
gkronber
Message:

#2283 various fixes for tree-based GP

Location:
branches/HeuristicLab.Problems.GrammaticalOptimization/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization/Main/Main.csproj

    r11846 r11847  
    3636  </PropertyGroup>
    3737  <ItemGroup>
    38     <Reference Include="HeuristicLab.Algorithms.GeneticAlgorithm-3.3">
    39       <HintPath>..\..\..\trunk\sources\bin\HeuristicLab.Algorithms.GeneticAlgorithm-3.3.dll</HintPath>
    40     </Reference>
    4138    <Reference Include="System" />
    4239    <Reference Include="System.Core" />
  • branches/HeuristicLab.Problems.GrammaticalOptimization/Main/Program.cs

    r11846 r11847  
    303303      const int maxIterations = 100000;
    304304      const int seed = 31415;
    305       var globalStatistics = new SentenceSetStatistics();
    306 
    307       var gp = new StandardGP(new SymbolicRegressionPoly10Problem(), new Random(seed));
     305      var globalStatistics = new SentenceSetStatistics(512);
     306
     307      var gp = new StandardGP(new HardPalindromeProblem(), new Random(seed));
    308308      gp.FoundNewBestSolution += (sentence, quality) => {
    309309        Console.WriteLine("{0}", globalStatistics);
     
    317317        }
    318318      };
     319
     320      gp.PopulationSize = 1000;
     321      gp.MaxSolutionSize = 31 + 2;
     322      gp.MaxSolutionDepth = 20;
    319323
    320324      var sw = new Stopwatch();
Note: See TracChangeset for help on using the changeset viewer.