Changeset 2212 for branches/GP-Refactoring-713/sources/HeuristicLab.GP.Operators/3.3/Manipulation/ChangeNodeTypeManipulation.cs
- Timestamp:
- 07/30/09 10:47:00 (15 years ago)
- Location:
- branches/GP-Refactoring-713/sources/HeuristicLab.GP.Operators
- Files:
-
- 2 added
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-Refactoring-713/sources/HeuristicLab.GP.Operators/3.3/Manipulation/ChangeNodeTypeManipulation.cs
r2211 r2212 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 23 using System.Linq; 25 using System.Text;26 24 using HeuristicLab.Core; 27 using HeuristicLab.Operators;28 25 using HeuristicLab.Random; 29 using HeuristicLab.Data;30 using HeuristicLab.Constraints;31 26 using System.Diagnostics; 32 27 using HeuristicLab.GP.Interfaces; 33 28 34 namespace HeuristicLab.GP {29 namespace HeuristicLab.GP.Operators { 35 30 public class ChangeNodeTypeManipulation : GPManipulatorBase { 36 31 … … 73 68 // size and height stays the same when changing a terminal so no need to update the variables 74 69 // schedule an operation to initialize the new terminal 75 return TreeGardener.CreateInitializationOperation(TreeGardener.GetAllSubTrees(newTerminal), scope);70 return Util.CreateInitializationOperation(TreeGardener.GetAllSubTrees(newTerminal), scope); 76 71 } else { 77 72 List<IFunctionTree> uninitializedBranches; … … 104 99 Debug.Assert(gardener.IsValidTree(gpModel.FunctionTree)); 105 100 // return a composite operation that initializes all created sub-trees 106 return TreeGardener.CreateInitializationOperation(uninitializedBranches, scope);101 return Util.CreateInitializationOperation(uninitializedBranches, scope); 107 102 } 108 103 }
Note: See TracChangeset
for help on using the changeset viewer.