- Timestamp:
- 08/08/15 19:49:05 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation/Run.cs
r12824 r12840 1 using HeuristicLab.Algorithms.Bandits; 1 using System.Diagnostics; 2 using HeuristicLab.Algorithms.Bandits; 2 3 using HeuristicLab.Algorithms.GrammaticalOptimization; 3 4 using HeuristicLab.Algorithms.MonteCarloTreeSearch; … … 41 42 RunState = RunState.NotStarted; 42 43 FoundSolutions = new List<FoundSolution>(); 43 CurrentSelectionIndicator = new SelectionIndicator(0, 0 );44 CurrentSelectionIndicator = new SelectionIndicator(0, 0, 0); 44 45 45 46 BestKnownQuality = problem.BestKnownQuality(maxLen); … … 60 61 { 61 62 MonteCarloTreeSearch mcts = (MonteCarloTreeSearch)solver; 62 mcts. NodeSelected += mcts_NodeSelected;63 } 64 } 65 66 private void mcts_ NodeSelected(int goodSelections, int totalSelections)67 { 68 CurrentSelectionIndicator.GoodSelections = goodSelections;69 CurrentSelectionIndicator.TotalSelections = totalSelections;70 this.OnPropertyChanged("CurrentSelectionIndicator");71 //CurrentSelectionIndicator = new SelectionIndicator(goodSelections, totalSelections);72 //selectionIndicators.Add(CurrentSelectionIndicator);63 mcts.IterationFinished += mcts_IterationFinished; 64 } 65 } 66 67 private void mcts_IterationFinished(int goodSelections, int totalSelections) 68 { 69 //CurrentSelectionIndicator.GoodSelections = goodSelections; 70 //CurrentSelectionIndicator.TotalSelections = totalSelections; 71 //this.OnPropertyChanged("CurrentSelectionIndicator"); 72 CurrentSelectionIndicator = new SelectionIndicator(goodSelections, totalSelections, selectionIndicators.Count); 73 selectionIndicators.Add(CurrentSelectionIndicator); 73 74 } 74 75
Note: See TracChangeset
for help on using the changeset viewer.