Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/19/17 12:55:58 (7 years ago)
Author:
pkimmesw
Message:

#2665 Started Plush Encoding, Added Zero Error Individual Count Analyzer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/BenchmarkSuite/PushBenchmarkSuiteProblem.cs

    r15189 r15273  
    88  using HeuristicLab.BenchmarkSuite.Problems;
    99  using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
    10   using HeuristicLab.Problems.ProgramSynthesis.Push.Extensions;
    1110
    1211  using Instances;
     
    4948      Description = data.Description;
    5049      BestKnownQuality = data.BestResult;
    51       config.MaxPointsInProgram = data.MaxSize;
    52       config.EvalPushLimit = data.EvalLimit;
    53       config.ErcOptions = data.ErcOptions;
    54       config.FloatStringFormat = data.FloatStringFormat;
     50      Config.MaxPointsInProgram = data.MaxSize;
     51      Config.EvalPushLimit = data.EvalLimit;
     52      Config.ErcOptions = data.ErcOptions;
     53      Config.FloatStringFormat = data.FloatStringFormat;
    5554
    56       config.SetEnabledStacks((StackTypes)data.EnabledDataTypes);
    57       data.InitInExpressions(config);
     55      Config.SetEnabledStacks((StackTypes)data.EnabledDataTypes);
     56      Config.InitInExpressions(data.TotalInputArgumentCount);
    5857
    5958      Encoding.Bounds[0, 0] = 0;
    60       Encoding.Bounds[0, 1] = config.EnabledExpressions.Count;
     59      Encoding.Bounds[0, 1] = Config.EnabledExpressions.Count;
    6160
    62       InitProgramLength = data.MaxSize / 2;
     61      Encoding.Length = data.MaxSize;
    6362    }
    6463
     
    6766      double bestQuality,
    6867      IRandom random,
    69       IReadOnlyPushConfiguration config,
    70       IPushEvaluator evaluator) {
    71       return new PushBenchmarkSuiteSolution(program, bestQuality, random, (IReadOnlyPushConfiguration)config.Clone(), (PushBenchmarkSuiteEvaluator)PushEvaluator.Clone());
     68      IReadOnlyPushConfiguration config) {
     69      return new PushBenchmarkSuiteSolution(program, bestQuality, random, config, (PushBenchmarkSuiteEvaluator)PushEvaluator.Clone());
    7270    }
    7371  }
Note: See TracChangeset for help on using the changeset viewer.