Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3823


Ignore:
Timestamp:
05/17/10 11:32:28 (15 years ago)
Author:
gkronber
Message:

Fixed bug in change node type mutation operator for GP. #1016

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/sources/HeuristicLab.GP.Operators/3.3/Manipulation/ChangeNodeTypeManipulation.cs

    r2222 r3823  
    129129      int actualArity = child.SubTrees.Count;
    130130      // create a new tree-node for a randomly selected function
    131       IFunction selectedFunction = allowedFunctions[random.Next(allowedFunctions.Count)];
     131      IFunction selectedFunction = TreeGardener.RandomSelect(random, allowedFunctions);
    132132      // arity of the selected operator
    133133      int minArity = selectedFunction.MinSubTrees;
Note: See TracChangeset for help on using the changeset viewer.