Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2553


Ignore:
Timestamp:
12/11/09 16:43:42 (13 years ago)
Author:
gkronber
Message:

Implemented #813 (GP structure-identification algorithms that use only a simple function library).

Location:
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3
Files:
2 added
2 edited

Legend:

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

    r2454 r2553  
    3636      SequentialProcessor seq = new SequentialProcessor();
    3737      seq.AddSubOperator(new FunctionLibraryInjector());
     38      seq.AddSubOperator(new HL3TreeEvaluatorInjector());
     39      op.OperatorGraph.AddOperator(seq);
     40      op.OperatorGraph.InitialOperator = seq;
     41      return op;
     42    }
     43
     44    public static IOperator CreateSimpleFunctionLibraryInjector() {
     45      CombinedOperator op = new CombinedOperator();
     46      op.Name = "FunctionLibraryInjector";
     47      SequentialProcessor seq = new SequentialProcessor();
     48      var funLibInjector = new FunctionLibraryInjector();
     49      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.CONSTANTS_ALLOWED, null, false).Data = true;
     50      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.VARIABLES_ALLOWED, null, false).Data = true;
     51      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.ADDITION_ALLOWED, null, false).Data = true;
     52      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.SUBTRACTION_ALLOWED, null, false).Data = true;
     53      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.MULTIPLICATION_ALLOWED, null, false).Data = true;
     54
     55      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.AND_ALLOWED, null, false).Data = false;
     56      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.AVERAGE_ALLOWED, null, false).Data = false;
     57      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.COSINUS_ALLOWED, null, false).Data = false;
     58      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.DIFFERENTIALS_ALLOWED, null, false).Data = false;
     59      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.DIVISION_ALLOWED, null, false).Data = false;
     60      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.EQUAL_ALLOWED, null, false).Data = false;
     61      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.EXPONENTIAL_ALLOWED, null, false).Data = false;
     62      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.GREATERTHAN_ALLOWED, null, false).Data = false;
     63      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.IFTHENELSE_ALLOWED, null, false).Data = false;
     64      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.LESSTHAN_ALLOWED, null, false).Data = false;
     65      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.LOGARTIHM_ALLOWED, null, false).Data = false;
     66      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.NOT_ALLOWED, null, false).Data = false;
     67      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.OR_ALLOWED, null, false).Data = false;
     68      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.POWER_ALLOWED, null, false).Data = false;
     69      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.SIGNUM_ALLOWED, null, false).Data = false;
     70      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.SINUS_ALLOWED, null, false).Data = false;
     71      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.SQRT_ALLOWED, null, false).Data = false;
     72      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.TANGENS_ALLOWED, null, false).Data = false;
     73      funLibInjector.GetVariableValue<BoolData>(FunctionLibraryInjector.XOR_ALLOWED, null, false).Data = false;
     74      seq.AddSubOperator(funLibInjector);
    3875      seq.AddSubOperator(new HL3TreeEvaluatorInjector());
    3976      op.OperatorGraph.AddOperator(seq);
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/HeuristicLab.GP.StructureIdentification-3.3.csproj

    r2454 r2553  
    8585    <Compile Include="BaseClasses\FunctionTreeBase.cs" />
    8686    <Compile Include="BaseClasses\TreeEvaluatorBase.cs" />
     87    <Compile Include="OffspringSelectionGPSimpleRegression.cs" />
     88    <Compile Include="StandardGPSimpleRegression.cs" />
    8789    <Compile Include="DefaultStructureIdentificationOperators.cs" />
    8890    <Compile Include="Evaluators\NodeBasedVariableImpactCalculator.cs" />
Note: See TracChangeset for help on using the changeset viewer.