Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/21/09 16:14:40 (15 years ago)
Author:
gkronber
Message:

Added new predefined function libraries for symbolic regression algorithms. Changed CEDMA dispatcher to choose a function library randomly. #813 (GP structure-identification algorithms that use only a simple function library)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/OffspringSelectionGPRegression.cs

    r2440 r2566  
    116116        problemInjector.OperatorGraph.AddOperator(value);
    117117        problemInjector.OperatorGraph.InitialOperator.AddSubOperator(value, 0);
     118      }
     119    }
     120
     121    public override IOperator FunctionLibraryInjector {
     122      get {
     123        CombinedOperator funLibInjector = (CombinedOperator)GetInitializationOperator().SubOperators[1];
     124        return funLibInjector.OperatorGraph.InitialOperator.SubOperators[0];
     125      }
     126      set {
     127        CombinedOperator funLibInjector = (CombinedOperator)GetInitializationOperator().SubOperators[1];
     128        IOperator seq = funLibInjector.OperatorGraph.InitialOperator;
     129        seq.RemoveSubOperator(0);
     130        seq.AddSubOperator(value, 0);
    118131      }
    119132    }
Note: See TracChangeset for help on using the changeset viewer.