Changeset 15273 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/BenchmarkSuite/BenchmarkSuitePushSolutionView.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/BenchmarkSuitePushSolutionView.cs
r15189 r15273 53 53 var example = Evaluator.Data.Examples[exampleComboBox.SelectedIndex]; 54 54 55 interpreter.SetInput( 56 integers: example.InputInteger, 57 floats: example.InputFloat, 58 booleans: example.InputBoolean, 59 chars: example.InputChar, 60 strings: example.InputString, 61 integerVectors: example.InputIntegerVector, 62 floatVectors: example.InputFloatVector, 63 stringVectors: example.InputStringVector); 64 65 //interpreter.BooleanStack.Push(example.InputBoolean); 66 //interpreter.IntegerStack.Push(example.InputInteger); 67 //interpreter.FloatStack.Push(example.InputFloat); 68 //interpreter.CharStack.Push(example.InputChar); 69 //interpreter.StringStack.Push(example.InputString); 70 //interpreter.IntegerVectorStack.Push(example.InputIntegerVector.Select(x => x.ToList()).ToList()); 71 //interpreter.FloatVectorStack.Push(example.InputFloatVector.Select(x => x.ToList()).ToList()); 72 //interpreter.StringVectorStack.Push(example.InputStringVector.Select(x => x.ToList()).ToList()); 73 //interpreter.BooleanVectorStack.Push(example.InputBooleanVector.Select(x => x.ToList()).ToList()); 55 interpreter.InitExample(example); 74 56 } 75 57 … … 92 74 } 93 75 76 94 77 protected override void OnContentChanged() { 95 78 if (Content == null) return; … … 104 87 } 105 88 106 interpreter = pool.Create(Content.Random); 89 var random = Content.GetRandom(); 90 interpreter = pool.Create(random); 107 91 UpdateExamples(Evaluator.Data); 108 92 … … 181 165 grid.Columns.Add(relativeDiffColumn); 182 166 183 using (var pushInterpreter = pool.Create(Content.Random)) { 167 var random = Content.GetRandom(); 168 using (var pushInterpreter = pool.Create(random)) { 184 169 var rowIndex = 1; 185 170 for (var i = start; i < end; i++, rowIndex++) {
Note: See TracChangeset
for help on using the changeset viewer.