Last change
on this file since 15287 was
15017,
checked in by pkimmesw, 8 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
|
Rev | Line | |
---|
[14897] | 1 | namespace HeuristicLab.Problems.ProgramSynthesis.Push.Problem.BenchmarkSuite {
|
---|
| 2 | using Common;
|
---|
| 3 | using Configuration;
|
---|
| 4 | using Core;
|
---|
[15017] | 5 |
|
---|
| 6 | using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;
|
---|
| 7 |
|
---|
[14897] | 8 | using Persistence.Default.CompositeSerializers.Storable;
|
---|
| 9 |
|
---|
| 10 | [StorableClass]
|
---|
| 11 | public class PushBenchmarkSuiteSolution : PushSolution {
|
---|
| 12 | public PushBenchmarkSuiteSolution(
|
---|
[15017] | 13 | PushProgram program,
|
---|
[14897] | 14 | double quality,
|
---|
| 15 | IRandom random,
|
---|
| 16 | IReadOnlyPushConfiguration config,
|
---|
| 17 | PushBenchmarkSuiteEvaluator evaluator,
|
---|
[15017] | 18 | bool simplify = false) : base(program, quality, random, config, evaluator, simplify) {
|
---|
[14897] | 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() {
|
---|
[15017] | 27 | return new PushBenchmarkSuiteSolution(Program, Quality, Random, Config, (PushBenchmarkSuiteEvaluator)Evaluator, true);
|
---|
[14897] | 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.