Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/05/15 07:03:15 (9 years ago)
Author:
gkronber
Message:

#2283: constant opt, expressioncompiler, autodiff, fixes in GP solvers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.GeneticProgramming/GenericSymbExprEvaluator.cs

    r11857 r11895  
    66using HeuristicLab.Operators;
    77using HeuristicLab.Parameters;
     8using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    89using HeuristicLab.PluginInfrastructure;
    910
    1011namespace HeuristicLab.Problems.GrammaticalOptimization {
    11   // this type is not storable because we use a func<ITree,double> for evaluation, which references back to the original grammatical optimization problem
    1212  [NonDiscoverableType]
     13  [StorableClass]
    1314  [Item("GenericSymbExprEvaluator", "Evaluator for grammatical optimization problems (using a symbolic expression tree encoding).")]
    1415  public class GenericSymbExprEvaluator : SingleSuccessorOperator, IGenericSymbExprEvaluator {
     
    2223    }
    2324
     25    // cannot save these (eval won't work when loaded from file
    2426    private Func<string, double> evalFunc;
    2527    private Func<ISymbolicExpressionTree, string> toStringFunc;
    2628
     29    [StorableConstructor]
     30    private GenericSymbExprEvaluator(bool deserializing) : base(deserializing) { }
    2731    public GenericSymbExprEvaluator(GenericSymbExprEvaluator original, Cloner cloner)
    2832      : base(original, cloner) {
Note: See TracChangeset for help on using the changeset viewer.