Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13498


Ignore:
Timestamp:
01/12/16 10:45:03 (8 years ago)
Author:
abeham
Message:

#2551: added setter to maximization property also

File:
1 edited

Legend:

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

    r13491 r13498  
    5959      get { return (IFixedValueParameter<SingleObjectiveOptimizationSupportScript>)Parameters["SupportScript"]; }
    6060    }
     61
     62    private IFixedValueParameter<BoolValue> MaximizationParameter {
     63      get { return (IFixedValueParameter<BoolValue>)Parameters["Maximization"]; }
     64    }
    6165    #endregion
    6266
     
    104108    public override bool Maximization {
    105109      get { return Parameters.ContainsKey("Maximization") && ((IValueParameter<BoolValue>)Parameters["Maximization"]).Value.Value; }
     110      set { MaximizationParameter.Value.Value = value; }
    106111    }
    107112
Note: See TracChangeset for help on using the changeset viewer.