Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/20/19 23:28:49 (5 years ago)
Author:
abeham
Message:

#2855: Reduced footprint of encoding in run

  • Instead of the encoding instance, only its name is added to the run (necessary to change in BasicProblem)
  • By default the operators parameter of an encoding is set to not be collected (change in Encoding)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Optimization/3.3/BasicProblems/Encoding.cs

    r16565 r16860  
    2323using System.Collections.Generic;
    2424using System.Linq;
     25using HEAL.Attic;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Core;
    2728using HeuristicLab.Parameters;
    28 using HEAL.Attic;
    2929
    3030namespace HeuristicLab.Optimization {
     
    9292    protected Encoding(string name)
    9393      : base(name) {
    94       Parameters.Add(new FixedValueParameter<ReadOnlyItemSet<IOperator>>(name + ".Operators", "The operators that the encoding specifies.", encodingOperators.AsReadOnly()));
     94      Parameters.Add(new FixedValueParameter<ReadOnlyItemSet<IOperator>>(name + ".Operators", "The operators that the encoding specifies.", encodingOperators.AsReadOnly()) {
     95        GetsCollected = false
     96      });
    9597    }
    9698
Note: See TracChangeset for help on using the changeset viewer.