Changeset 15273 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/BenchmarkSuite/PushBenchmarkSuiteProblem.cs
- Timestamp:
- 07/19/17 12:55:58 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/BenchmarkSuite/PushBenchmarkSuiteProblem.cs
r15189 r15273 8 8 using HeuristicLab.BenchmarkSuite.Problems; 9 9 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 10 using HeuristicLab.Problems.ProgramSynthesis.Push.Extensions;11 10 12 11 using Instances; … … 49 48 Description = data.Description; 50 49 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; 55 54 56 config.SetEnabledStacks((StackTypes)data.EnabledDataTypes);57 data.InitInExpressions(config);55 Config.SetEnabledStacks((StackTypes)data.EnabledDataTypes); 56 Config.InitInExpressions(data.TotalInputArgumentCount); 58 57 59 58 Encoding.Bounds[0, 0] = 0; 60 Encoding.Bounds[0, 1] = config.EnabledExpressions.Count;59 Encoding.Bounds[0, 1] = Config.EnabledExpressions.Count; 61 60 62 InitProgramLength = data.MaxSize / 2;61 Encoding.Length = data.MaxSize; 63 62 } 64 63 … … 67 66 double bestQuality, 68 67 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()); 72 70 } 73 71 }
Note: See TracChangeset
for help on using the changeset viewer.