Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/BenchmarkSuite/PushBenchmarkSuiteSolution.cs @ 15017

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

#2665 Fixed Benchmark Problem Definition, Converted LoopExpressions to stateless expressions, Added several unit test to ensure funcionality, Fixed UI bugs

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