Changeset 15032 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/BenchmarkSuite
- Timestamp:
- 06/12/17 14:11:43 (7 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/BenchmarkSuite
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/BenchmarkSuite/BenchmarkSuitePushSolutionView.cs
r15017 r15032 120 120 AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill, 121 121 CellTemplate = cellTemplate, 122 DefaultCellStyle = { Alignment = DataGridViewContentAlignment.MiddleRight } 122 DefaultCellStyle = { Alignment = DataGridViewContentAlignment.MiddleRight }, 123 SortMode = DataGridViewColumnSortMode.Automatic 123 124 }; 124 125 … … 133 134 AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill, 134 135 CellTemplate = cellTemplate, 136 SortMode = DataGridViewColumnSortMode.Automatic 135 137 }; 136 138 … … 138 140 HeaderText = string.Format(OutputHeaderStringFormat, i + 1, headerTypeName), 139 141 AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill, 140 CellTemplate = cellTemplate 142 CellTemplate = cellTemplate, 143 SortMode = DataGridViewColumnSortMode.Automatic 141 144 }; 142 145 … … 151 154 HeaderText = AbsoluteDiffHeaderText, 152 155 AutoSizeMode = DataGridViewAutoSizeColumnMode.ColumnHeader, 153 CellTemplate = cellTemplate 156 CellTemplate = cellTemplate, 157 SortMode = DataGridViewColumnSortMode.Automatic 154 158 }; 155 159 … … 158 162 AutoSizeMode = DataGridViewAutoSizeColumnMode.ColumnHeader, 159 163 CellTemplate = cellTemplate, 164 SortMode = DataGridViewColumnSortMode.Automatic 160 165 }; 161 166 … … 185 190 var type = data.InputArgumentTypes[j]; 186 191 var offset = inputArgumentCountDict[type]; 187 row.Cells[j].Value = ViewHelper.StringifyInput(type, offset, example, Separator);192 row.Cells[j].Value = ViewHelper.StringifyInput(type, offset, Content.Config.FloatStringFormat, example, Separator); 188 193 inputArgumentCountDict[type]++; 189 194 } … … 193 198 var type = data.OutputArgumentTypes[j]; 194 199 var offset = outputArgumentCountDict[type]; 195 row.Cells[data.InputArgumentTypes.Length + j * 2].Value = ViewHelper.StringifyOutput(type, offset, example, Separator);200 row.Cells[data.InputArgumentTypes.Length + j * 2].Value = ViewHelper.StringifyOutput(type, offset, Content.Config.FloatStringFormat, example, Separator); 196 201 row.Cells[data.InputArgumentTypes.Length + j * 2 + 1].Value = StringifyResult(type, offset, pushInterpreter, example, Separator); 197 202 outputArgumentCountDict[type]++; -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/BenchmarkSuite/PushBenchmarkSuiteProblem.cs
r15017 r15032 5 5 6 6 using HeuristicLab.BenchmarkSuite; 7 using HeuristicLab.BenchmarkSuite.Problems; 7 8 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions; 8 9 … … 18 19 Parameters.Add(PushEvaluator.DataParameter); 19 20 Parameters.Add(PushEvaluator.DataBoundsParameter); 21 22 if (PushEvaluator.Data == null) { 23 var defaultProblem = new NumberIO(); 24 Load(defaultProblem.CreateProblemData()); 25 } 20 26 } 21 27
Note: See TracChangeset
for help on using the changeset viewer.