Changeset 11895 for branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.GeneticProgramming/GenericSymbExprEvaluator.cs
- Timestamp:
- 02/05/15 07:03:15 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Algorithms.GeneticProgramming/GenericSymbExprEvaluator.cs
r11857 r11895 6 6 using HeuristicLab.Operators; 7 7 using HeuristicLab.Parameters; 8 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 8 9 using HeuristicLab.PluginInfrastructure; 9 10 10 11 namespace 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 problem12 12 [NonDiscoverableType] 13 [StorableClass] 13 14 [Item("GenericSymbExprEvaluator", "Evaluator for grammatical optimization problems (using a symbolic expression tree encoding).")] 14 15 public class GenericSymbExprEvaluator : SingleSuccessorOperator, IGenericSymbExprEvaluator { … … 22 23 } 23 24 25 // cannot save these (eval won't work when loaded from file 24 26 private Func<string, double> evalFunc; 25 27 private Func<ISymbolicExpressionTree, string> toStringFunc; 26 28 29 [StorableConstructor] 30 private GenericSymbExprEvaluator(bool deserializing) : base(deserializing) { } 27 31 public GenericSymbExprEvaluator(GenericSymbExprEvaluator original, Cloner cloner) 28 32 : base(original, cloner) {
Note: See TracChangeset
for help on using the changeset viewer.