- Timestamp:
- 07/20/15 16:45:08 (9 years ago)
- Location:
- branches/HeuristicLab.Problems.GrammaticalOptimization
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization
- Property svn:ignore
-
old new 3 3 TestResults 4 4 _ReSharper.GrammaticalOptimization 5 EvaluationResults
-
- Property svn:ignore
-
branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation
-
Property
svn:ignore
set to
bin
obj
-
Property
svn:ignore
set to
-
branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation/ViewModel/EvaluationViewModel.cs
r12762 r12781 1 using System.Collections.ObjectModel; 2 using HeuristicLab.Algorithms.Bandits.BanditPolicies; 1 using HeuristicLab.Algorithms.Bandits.BanditPolicies; 3 2 using HeuristicLab.Algorithms.GeneticProgramming; 4 3 using HeuristicLab.Algorithms.GrammaticalOptimization; … … 7 6 using System; 8 7 using System.Collections.Generic; 8 using System.Collections.ObjectModel; 9 9 using System.ComponentModel; 10 10 using System.Linq; 11 using System.Text;12 using System.Threading.Tasks;13 using HeuristicLab.Problems.GrammaticalOptimization.SymbReg;14 11 15 12 namespace Evaluation.ViewModel … … 85 82 } 86 83 87 private double bestKnownQuality;88 89 public double BestKnownQuality90 {91 get { return this.bestKnownQuality; }92 set93 {94 this.bestKnownQuality = value;95 this.OnPropertyChanged("BestKnownQuality");96 }97 }98 99 private double currentBestQuality;100 101 public double CurrentBestQuality102 {103 get { return this.currentBestQuality; }104 set105 {106 this.currentBestQuality = value;107 this.OnPropertyChanged("CurrentBestQuality");108 }109 }110 111 private int evaluations;112 113 public int Evaluations114 {115 get { return this.evaluations; }116 set117 {118 this.evaluations = value;119 this.OnPropertyChanged("Evaluations");120 }121 }122 123 84 private int nrRuns; 124 85 … … 129 90 } 130 91 131 private int threads;132 133 public int Threads134 {135 get { return this.threads; }136 set { this.threads = value; this.OnPropertyChanged("Threads"); }137 }138 139 92 private int maxLen; 140 93 … … 193 146 } 194 147 195 private string currentRunString;196 197 public string CurrentRunString198 {199 get { return this.currentRunString; }200 set201 {202 currentRunString = value;203 this.OnPropertyChanged("CurrentRunString");204 }205 }206 207 private double evaluationsPerSec;208 209 public double EvaluationsPerSec210 {211 get { return this.evaluationsPerSec; }212 set213 {214 evaluationsPerSec = value;215 this.OnPropertyChanged("EvaluationsPerSec");216 }217 }218 219 private int bestSolutionFoundAt;220 221 public int BestSolutionFoundAt222 {223 get { return this.bestSolutionFoundAt; }224 set225 {226 bestSolutionFoundAt = value;227 this.OnPropertyChanged("BestSolutionFoundAt");228 }229 }230 231 private string bestSolution;232 233 public string BestSolution234 {235 get { return this.bestSolution; }236 set237 {238 bestSolution = value;239 this.OnPropertyChanged("BestSolution");240 }241 }242 243 148 private ObservableCollection<Run> runs = new ObservableCollection<Run>(); 244 149 … … 253 158 } 254 159 255 private Run currentRun; 256 257 public Run CurrentRun 258 { 259 get { return this.currentRun; } 260 set 261 { 262 currentRun = value; 263 if (currentRun != null) 264 { 265 Evaluations = currentRun.Evaluations; 266 BestKnownQuality = currentRun.BestKnownQuality; 267 CurrentBestQuality = currentRun.BestSolutionQuality; 268 EvaluationsPerSec = currentRun.EvaluationsPerSecond; 269 } 270 this.OnPropertyChanged("CurrentRun"); 160 private Run selectedRun; 161 162 public Run SelectedRun 163 { 164 get { return this.selectedRun; } 165 set 166 { 167 selectedRun = value; 168 this.OnPropertyChanged("SelectedRun"); 169 } 170 } 171 172 private string completedRuns; 173 174 public string CompletedRuns 175 { 176 get { return this.completedRuns; } 177 set 178 { 179 completedRuns = value; 180 this.OnPropertyChanged("CompletedRuns"); 271 181 } 272 182 } … … 305 215 this.algorithms.Add(typeof(SequentialSearch)); 306 216 this.algorithms.Add(typeof(MonteCarloTreeSearch)); 217 this.algorithms.Add(typeof(MonteCarloTreeSearch_PruneLeaves)); 307 218 this.algorithms.Add(typeof(StandardGP)); 308 219 this.algorithms.Add(typeof(OffspringSelectionGP)); 309 220 310 this.selectedAlgorithm = typeof(MonteCarloTreeSearch );221 this.selectedAlgorithm = typeof(MonteCarloTreeSearch_PruneLeaves); 311 222 } 312 223
Note: See TracChangeset
for help on using the changeset viewer.