Free cookie consent management tool by TermsFeed Policy Generator

Ticket #2855: ShowInRun.patch

File ShowInRun.patch, 2.1 KB (added by abeham, 6 years ago)

The patch sets the GetsCollected property to false for the mentioned parameters

  • HeuristicLab.Optimization/3.3/BasicProblems/BasicProblem.cs

     
    6464
    6565    protected BasicProblem()
    6666      : base() {
    67       Parameters.Add(new ValueParameter<TEncoding>("Encoding", "Describes the configuration of the encoding, what the variables are called, what type they are and their bounds if any."));
     67      var encodingParameter = new ValueParameter<TEncoding>("Encoding", "Describes the configuration of the encoding, what the variables are called, what type they are and their bounds if any.");
     68      // ABE: disable showing the encoding itself in the run by default as it wastes a lot of space
     69      //      note that parameters of the encoding might still show up in the run
     70      encodingParameter.GetsCollected = false;
     71      Parameters.Add(encodingParameter);
    6872      oldEncoding = Encoding;
    6973      if(Encoding != null) Parameterize();
    7074      RegisterEvents();
  • HeuristicLab.Optimization/3.3/BasicProblems/Encoding.cs

     
    9191    }
    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      var operatorsParam = new FixedValueParameter<ReadOnlyItemSet<IOperator>>(name + ".Operators", "The operators that the encoding specifies.", encodingOperators.AsReadOnly());
     95      // ABE: disable showing the operator collection in the run by default as it wastes a lot of space
     96      operatorsParam.GetsCollected = false;
     97      Parameters.Add(operatorsParam);
    9598    }
    9699
    97100    public virtual Individual GetIndividual(IScope scope) {