Changeset 11032 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Operators/BeforeManipulatorOperator.cs
- Timestamp:
- 06/22/14 23:10:21 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Operators/BeforeManipulatorOperator.cs
r10897 r11032 20 20 #endregion 21 21 22 using System;23 22 using System.Linq; 24 23 using HeuristicLab.Common; … … 52 51 // since mutation always takes place after crossover, the vertex for the current child is already in the tree 53 52 var v = (IGenealogyGraphNode<T>)GenealogyGraph.GetVertex(ChildParameter.ActualValue); 54 55 if (!v.Rank.IsAlmost(Generations.Value + 1)) {56 throw new Exception("Child rank should be generations.value + 1");57 }58 53 var clone = (T)ChildParameter.ActualValue.Clone(); 59 54
Note: See TracChangeset
for help on using the changeset viewer.