Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/24/15 17:58:03 (9 years ago)
Author:
abeham
Message:

#2521: added default ctor to SymbolicExpressionTreeEncoding (otherwise the parameter in Problem<..> cannot create it)

Location:
branches/ProblemRefactoring
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemRefactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTreeEncoding.cs

    r13372 r13382  
    159159    [StorableConstructor]
    160160    private SymbolicExpressionTreeEncoding(bool deserializing) : base(deserializing) { }
     161    public SymbolicExpressionTreeEncoding() : this(new SimpleSymbolicExpressionGrammar()) { }
    161162    public SymbolicExpressionTreeEncoding(ISymbolicExpressionGrammar grammar) : this("SymbolicExpressionTree", grammar, 50, 50) { }
    162163    public SymbolicExpressionTreeEncoding(ISymbolicExpressionGrammar grammar, int maximumLength, int maximumDepth) : this("SymbolicExpressionTree", grammar, maximumLength, maximumDepth) { }
  • branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/MultiObjectiveProgrammableProblem.cs

    r13376 r13382  
    7272      Parameters.Add(new FixedValueParameter<MultiObjectiveProblemDefinitionScript<TEncoding, TSolution>>("ProblemScript", "Defines the problem.",
    7373        new MultiObjectiveProblemDefinitionScript<TEncoding, TSolution>() { Name = Name }));
    74       ProblemScript.Encoding = Encoding = (TEncoding)Encoding.Clone();
     74      ProblemScript.Encoding = (TEncoding)Encoding.Clone();
    7575      RegisterEvents();
    7676    }
  • branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProgrammableProblem.cs

    r13376 r13382  
    7474      Parameters.Add(new FixedValueParameter<SingleObjectiveProblemDefinitionScript<TEncoding, TSolution>>("ProblemScript", "Defines the problem.",
    7575        new SingleObjectiveProblemDefinitionScript<TEncoding, TSolution>() { Name = Name }));
    76       ProblemScript.Encoding = Encoding = (TEncoding)Encoding.Clone();
     76      ProblemScript.Encoding = (TEncoding)Encoding.Clone();
    7777      Operators.Add(new BestScopeSolutionAnalyzer());
    7878      RegisterEvents();
Note: See TracChangeset for help on using the changeset viewer.