Changeset 10752 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic
- Timestamp:
- 04/15/14 17:08:35 (11 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj
r10650 r10752 304 304 <Compile Include="Tracking\SymbolicDataAnalysisExpressionAfterManipulatorOperator.cs" /> 305 305 <Compile Include="Tracking\SymbolicDataAnalysisExpressionBeforeManipulatorOperator.cs" /> 306 <Compile Include="Tracking\SymbolicDataAnalysisExpressionTracing.cs" /> 306 307 <None Include="HeuristicLab.snk" /> 307 308 <None Include="Plugin.cs.frame" /> -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionAfterCrossoverOperator.cs
r10677 r10752 25 25 break; 26 26 } 27 if (fragment == null) throw new Exception("Could not determine fragment!"); 27 // if the fragment is null then it means crossover did not do anything 28 // if (fragment == null) throw new Exception("Could not determine fragment!"); 28 29 29 30 arcs[0].Data = null; -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionBeforeCrossoverOperator.cs
r10677 r10752 29 29 public class SymbolicDataAnalysisExpressionBeforeCrossoverOperator : BeforeCrossoverOperator<ISymbolicExpressionTree> { 30 30 public override IOperation Apply() { 31 var result = base.Apply(); // the child will be added to the graph before the crossover31 var result = base.Apply(); // the base operator will add the child to the graph before the actual crossover operation takes place 32 32 var parents = ParentsParameter.ActualValue.ToList(); 33 33 var childVertex = (IGenealogyGraphNode<ISymbolicExpressionTree>)GenealogyGraph[parents[0]].Last(); // use the parent since it is actually the child before crossover (and the ChildParameter doesn't have a value yet) … … 38 38 arcs[i].Data = nodes; 39 39 } 40 var parentVertices = childVertex. InArcs.Select(x => (IGenealogyGraphNode<ISymbolicExpressionTree>)x.Source).ToList();40 var parentVertices = childVertex.Parents.ToList(); 41 41 if (parents[0].Length != parentVertices[0].Content.Length || parents[1].Length != parentVertices[1].Content.Length) { 42 42 throw new Exception("Inconsistency detected in GenealogyGraph.");
Note: See TracChangeset
for help on using the changeset viewer.