Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/13/11 15:31:27 (13 years ago)
Author:
mkommend
Message:

#1657: Corrected ADFs for GP and adapted and extended the specific unit test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/ArchitectureManipulators/ArgumentCreater.cs

    r5809 r6918  
    180180          foreach (var symb in subtree.Grammar.Symbols) {
    181181            if (symb is StartSymbol || symb is ProgramRootSymbol) continue;
     182            if (symb.Name == matchingSymbol.Name) continue; //don't allow invoke as child of invoke
    182183            if (subtree.Grammar.IsAllowedChildSymbol(selectedCutPoint.Parent.Symbol, symb, selectedCutPoint.ChildIndex))
    183184              subtree.Grammar.AddAllowedChildSymbol(matchingSymbol, symb, newArgumentNode.Symbol.ArgumentIndex);
Note: See TracChangeset for help on using the changeset viewer.