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/StandardGPRegression.cs

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