Changeset 10886 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Analyzers
- Timestamp:
- 05/22/14 13:49:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Analyzers/GenealogyAnalyzer.cs
r10884 r10886 54 54 private const string EnableSolutionCreatorTrackingParameterName = "EnableSolutionCreatorTracking"; // should always be enabled. maybe superfluous 55 55 56 public string CrossoverParentsParameterName { get; set; } 57 public string CrossoverChildParameterName { get; set; } 58 public string ManipulatorChildParameterName { get; set; } 59 56 #region parameter properties 60 57 public IScopeTreeLookupParameter<DoubleValue> QualityParameter { 61 58 get { return (IScopeTreeLookupParameter<DoubleValue>)Parameters[QualityParameterName]; } 62 59 } 63 64 60 public IScopeTreeLookupParameter<T> PopulationParameter { 65 61 get { return (IScopeTreeLookupParameter<T>)Parameters[PopulationParameterName]; } 66 62 } 67 68 63 public IValueParameter<ICrossoverOperator<T>> BeforeCrossoverOperatorParameter { 69 64 get { return (IValueParameter<ICrossoverOperator<T>>)Parameters[BeforeCrossoverOperatorParameterName]; } … … 78 73 get { return (IValueParameter<IManipulatorOperator<T>>)Parameters[AfterManipulatorOperatorParameterName]; } 79 74 } 80 81 #region parameter properties82 75 public ILookupParameter<ResultCollection> ResultsParameter { 83 76 get { return (ILookupParameter<ResultCollection>)Parameters[ResultsParameterName]; } … … 265 258 } 266 259 } else { 260 // TODO: eliminate from the graph extra vertices added by the recombination operators when filling the pool of offspring with offspring selection 261 267 262 var elite = population.FirstOrDefault(x => GenealogyGraph.Contains(x)); 268 263 if (elite != null) { … … 282 277 GenealogyGraph[vertex.Content] = vertex; 283 278 GenealogyGraph[previousVertex.Content] = previousVertex; 284 // connect current elite with previous elite 285 previousVertex.AddForwardArc(vertex); 286 vertex.AddReverseArc(previousVertex); 279 GenealogyGraph.AddArc(previousVertex, vertex); // connect current elite with previous elite 287 280 vertex.Id = previousVertex.Id; // another way would be to introduce the vertex.Id into the scope of the elite 288 281 vertex.Quality = previousVertex.Quality;
Note: See TracChangeset
for help on using the changeset viewer.