Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Solution/BenchmarkSuite/PushBenchmarkSuiteSolution.cs @ 17432

Last change on this file since 17432 was 15771, checked in by bburlacu, 7 years ago

#2895: Add solution skeleton for PushGP with genealogy analysis.

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