Free cookie consent management tool by TermsFeed Policy Generator

source: addons/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Solution/BenchmarkSuite/PushBenchmarkSuiteSolution.cs @ 15692

Last change on this file since 15692 was 15289, checked in by pkimmesw, 7 years ago

#2665 Fixed analyzer, fixed Plush encoding + operators, adpated print evaluation according to McPhee

File size: 1.3 KB
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Push.Solution.BenchmarkSuite {
2  using HeuristicLab.Common;
3  using HeuristicLab.Core;
4  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
5  using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration;
6  using HeuristicLab.Problems.ProgramSynthesis.Push.Evaluator;
7  using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
8
9  [StorableClass]
10  public class PushBenchmarkSuiteSolution : PushSolution {
11    public PushBenchmarkSuiteSolution(
12      PushProgram program,
13      double quality,
14      IRandom random,
15      IReadOnlyPushConfiguration config,
16      PushBenchmarkSuiteEvaluator evaluator,
17      bool simplify = false) : base(program, quality, random, config, evaluator, simplify) {
18    }
19
20    public PushBenchmarkSuiteSolution(PushBenchmarkSuiteSolution origin, Cloner cloner) : base(origin, cloner) { }
21
22    [StorableConstructor]
23    public PushBenchmarkSuiteSolution(bool deserializing) : base(deserializing) { }
24
25    public override PushSolution Simplify() {
26      return new PushBenchmarkSuiteSolution(Program, Quality, Random, Config, (PushBenchmarkSuiteEvaluator)Evaluator, true);
27    }
28
29    public override IDeepCloneable Clone(Cloner cloner) {
30      return new PushBenchmarkSuiteSolution(this, cloner);
31    }
32  }
33}
Note: See TracBrowser for help on using the repository browser.