Changeset 3873 for branches/3.2/sources/HeuristicLab.GP
- Timestamp:
- 05/31/10 08:31:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/sources/HeuristicLab.GP/3.3/GeneticProgrammingModel.cs
r2787 r3873 36 36 set { 37 37 functionTree = value; 38 Size = functionTree.GetSize();39 Height = functionTree.GetHeight();40 38 } 41 39 } 42 public int Size { get ; set;}43 public int Height { get ; set;}40 public int Size { get { return functionTree.GetSize(); } } 41 public int Height { get { return functionTree.GetHeight(); } } 44 42 45 43 public GeneticProgrammingModel() … … 99 97 // check if there is data for the tree node that needs to be restored and restore the data if needed 100 98 var dataNode = fNode.SelectSingleNode("Data"); 101 if (dataNode !=null) tree.Populate(dataNode, restoredObjects);99 if (dataNode != null) tree.Populate(dataNode, restoredObjects); 102 100 nodeIndex++; 103 101 for (int i = 0; i < subTrees; i++) {
Note: See TracChangeset
for help on using the changeset viewer.