- Timestamp:
- 01/17/16 18:50:15 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation/MainWindow.xaml.cs
r13518 r13533 70 70 } 71 71 72 // insert point between two solutions, with the result that there is no direct line from solutionpoint to solutionpoint 73 74 for (int i = 1; i < solutions.Count; i++) 75 { 76 FoundSolution previousSolution = solutions[i - 1]; 77 FoundSolution currentSolution = solutions[i]; 78 // insert point 79 solutions.Insert(i, new FoundSolution(currentSolution.Time, currentSolution.Iteration, previousSolution.Quality, "placeholder")); 80 i++; 81 } 82 72 83 var ds = new EnumerableDataSource<FoundSolution>(solutions); 73 84 … … 90 101 { 91 102 solutions.Add(new FoundSolution(run.EndTime, run.Evaluations, run.BestQuality, run.BestSolution)); 103 } 104 // insert point between two solutions, with the result that there is no direct line from solutionpoint to solutionpoint 105 106 for (int i = 1; i < solutions.Count; i++) 107 { 108 FoundSolution previousSolution = solutions[i - 1]; 109 FoundSolution currentSolution = solutions[i]; 110 // insert point 111 solutions.Insert(i, new FoundSolution(currentSolution.Time, currentSolution.Iteration, previousSolution.Quality, "placeholder")); 112 i++; 92 113 } 93 114 … … 143 164 run.TreeInfos = mctsSolver.GetTreeInfos(); 144 165 145 byte[] output = mctsSolver.GenerateSvg(); 146 if (output != null && output.Length > 0) 147 { 148 run.SvgFile = string.Format("MCTS_SVG_#{0}_{1}.svg", run.RunNumber, DateTime.Now.Ticks); 149 File.WriteAllBytes(run.SvgFile, mctsSolver.GenerateSvg()); 150 } 166 // svg-tree -> 167 //byte[] output = mctsSolver.GenerateSvg(); 168 //if (output != null && output.Length > 0) 169 //{ 170 // run.SvgFile = string.Format("MCTS_SVG_#{0}_{1}.svg", run.RunNumber, DateTime.Now.Ticks); 171 // File.WriteAllBytes(run.SvgFile, output); 172 //} 151 173 mctsSolver.FreeAll(); 152 174 } … … 458 480 { 459 481 TextBoxEpsylon.Visibility = Visibility.Visible; 460 vm.PolicyParameter = 0.5; 482 vm.PolicyParameter = 0.5; 461 483 TextBlockEpsylon.Text = "Epsilon"; 462 484 TextBlockEpsylon.Visibility = Visibility.Visible; 463 485 } 464 else if (vm.SelectedPolicy == typeof 486 else if (vm.SelectedPolicy == typeof(UCTPolicy)) 465 487 { 466 488 TextBoxEpsylon.Visibility = Visibility.Visible;
Note: See TracChangeset
for help on using the changeset viewer.