Changeset 441 for trunk/sources
- Timestamp:
- 08/04/08 23:04:13 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.StructureIdentification/RampedTreeCreator.cs
r324 r441 27 27 using HeuristicLab.Random; 28 28 using HeuristicLab.Functions; 29 using System.Diagnostics; 29 30 30 31 namespace HeuristicLab.StructureIdentification { … … 70 71 scope.AddVariable(new HeuristicLab.Core.Variable(scope.TranslateName("TreeHeight"), new IntData(actualTreeHeight))); 71 72 72 if(!gardener.IsValidTree(root)) { throw new InvalidProgramException(); } 73 74 if(actualTreeHeight > maxTreeHeight) { 75 throw new InvalidProgramException(); 76 } 73 Debug.Assert(gardener.IsValidTree(root) && actualTreeHeight <= maxTreeHeight); 77 74 78 75 return gardener.CreateInitializationOperation(gardener.GetAllSubTrees(root), scope);
Note: See TracChangeset
for help on using the changeset viewer.