Ignore:
Timestamp:
01/12/16 14:15:05 (5 years ago)
Author:
abeham
Message:

#2551: added SetMaximization method, because there's no way to add a setter to an overridden property

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblem.cs

    r13498 r13500  
    108108    public override bool Maximization {
    109109      get { return Parameters.ContainsKey("Maximization") && ((IValueParameter<BoolValue>)Parameters["Maximization"]).Value.Value; }
    110       set { MaximizationParameter.Value.Value = value; }
     110    }
     111
     112    public virtual void SetMaximization(bool maximization) {
     113      MaximizationParameter.Value.Value = maximization;
    111114    }
    112115
Note: See TracChangeset for help on using the changeset viewer.