Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/20/15 16:45:08 (9 years ago)
Author:
aballeit
Message:

#2283 stable GUI; ThreadPool for runs; improved TreeAnalysis

Location:
branches/HeuristicLab.Problems.GrammaticalOptimization
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization

    • Property svn:ignore
      •  

        old new  
        33TestResults
        44_ReSharper.GrammaticalOptimization
         5EvaluationResults
  • branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation

    • Property svn:ignore set to
      bin
      obj
  • branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation/ViewModel/EvaluationViewModel.cs

    r12762 r12781  
    1 using System.Collections.ObjectModel;
    2 using HeuristicLab.Algorithms.Bandits.BanditPolicies;
     1using HeuristicLab.Algorithms.Bandits.BanditPolicies;
    32using HeuristicLab.Algorithms.GeneticProgramming;
    43using HeuristicLab.Algorithms.GrammaticalOptimization;
     
    76using System;
    87using System.Collections.Generic;
     8using System.Collections.ObjectModel;
    99using System.ComponentModel;
    1010using System.Linq;
    11 using System.Text;
    12 using System.Threading.Tasks;
    13 using HeuristicLab.Problems.GrammaticalOptimization.SymbReg;
    1411
    1512namespace Evaluation.ViewModel
     
    8582        }
    8683
    87         private double bestKnownQuality;
    88 
    89         public double BestKnownQuality
    90         {
    91             get { return this.bestKnownQuality; }
    92             set
    93             {
    94                 this.bestKnownQuality = value;
    95                 this.OnPropertyChanged("BestKnownQuality");
    96             }
    97         }
    98 
    99         private double currentBestQuality;
    100 
    101         public double CurrentBestQuality
    102         {
    103             get { return this.currentBestQuality; }
    104             set
    105             {
    106                 this.currentBestQuality = value;
    107                 this.OnPropertyChanged("CurrentBestQuality");
    108             }
    109         }
    110 
    111         private int evaluations;
    112 
    113         public int Evaluations
    114         {
    115             get { return this.evaluations; }
    116             set
    117             {
    118                 this.evaluations = value;
    119                 this.OnPropertyChanged("Evaluations");
    120             }
    121         }
    122 
    12384        private int nrRuns;
    12485
     
    12990        }
    13091
    131         private int threads;
    132 
    133         public int Threads
    134         {
    135             get { return this.threads; }
    136             set { this.threads = value; this.OnPropertyChanged("Threads"); }
    137         }
    138 
    13992        private int maxLen;
    14093
     
    193146        }
    194147
    195         private string currentRunString;
    196 
    197         public string CurrentRunString
    198         {
    199             get { return this.currentRunString; }
    200             set
    201             {
    202                 currentRunString = value;
    203                 this.OnPropertyChanged("CurrentRunString");
    204             }
    205         }
    206 
    207         private double evaluationsPerSec;
    208 
    209         public double EvaluationsPerSec
    210         {
    211             get { return this.evaluationsPerSec; }
    212             set
    213             {
    214                 evaluationsPerSec = value;
    215                 this.OnPropertyChanged("EvaluationsPerSec");
    216             }
    217         }
    218 
    219         private int bestSolutionFoundAt;
    220 
    221         public int BestSolutionFoundAt
    222         {
    223             get { return this.bestSolutionFoundAt; }
    224             set
    225             {
    226                 bestSolutionFoundAt = value;
    227                 this.OnPropertyChanged("BestSolutionFoundAt");
    228             }
    229         }
    230 
    231         private string bestSolution;
    232 
    233         public string BestSolution
    234         {
    235             get { return this.bestSolution; }
    236             set
    237             {
    238                 bestSolution = value;
    239                 this.OnPropertyChanged("BestSolution");
    240             }
    241         }
    242 
    243148        private ObservableCollection<Run> runs = new ObservableCollection<Run>();
    244149
     
    253158        }
    254159
    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");
    271181            }
    272182        }
     
    305215            this.algorithms.Add(typeof(SequentialSearch));
    306216            this.algorithms.Add(typeof(MonteCarloTreeSearch));
     217            this.algorithms.Add(typeof(MonteCarloTreeSearch_PruneLeaves));
    307218            this.algorithms.Add(typeof(StandardGP));
    308219            this.algorithms.Add(typeof(OffspringSelectionGP));
    309220
    310             this.selectedAlgorithm = typeof(MonteCarloTreeSearch);
     221            this.selectedAlgorithm = typeof(MonteCarloTreeSearch_PruneLeaves);
    311222        }
    312223
Note: See TracChangeset for help on using the changeset viewer.