Changeset 14199
- Timestamp:
- 07/23/16 18:23:54 (8 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14198
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding merged: 14198
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Crossovers/SubtreeCrossover.cs
r14186 r14199 95 95 int childLength = crossoverPoint0.Child != null ? crossoverPoint0.Child.GetLength() : 0; 96 96 // calculate the max length and depth that the inserted branch can have 97 int maxInsertedBranchLength = Math.Max( 1, maxTreeLength - (parent0.Length - childLength));98 int maxInsertedBranchDepth = Math.Max( 1, maxTreeDepth - parent0.Root.GetBranchLevel(crossoverPoint0.Parent));97 int maxInsertedBranchLength = Math.Max(0, maxTreeLength - (parent0.Length - childLength)); 98 int maxInsertedBranchDepth = Math.Max(0, maxTreeDepth - parent0.Root.GetBranchLevel(crossoverPoint0.Parent)); 99 99 100 100 List<ISymbolicExpressionTreeNode> allowedBranches = new List<ISymbolicExpressionTreeNode>();
Note: See TracChangeset
for help on using the changeset viewer.