Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/19/20 15:01:59 (4 years ago)
Author:
abeham
Message:

#2521: Introduce class to make parameter change handling easier, fix bug in SingleObjectiveProblem regarding MaximizationChanged

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.4/SingleObjectiveExternalEvaluationProblem.cs

    r17382 r17546  
    9393    public ExternalEvaluationProblem(TEncoding encoding)
    9494      : base(encoding) {
    95       MaximizationParameter.ReadOnly = false;
    96       MaximizationParameter.Value = new BoolValue(); // is a read-only bool value in base class
    97       MaximizationParameter.ReadOnly = true;
     95      MaximizationParameter.ForceValue(new BoolValue()); // is a read-only bool value in base class
    9896      Parameters.Add(new OptionalValueParameter<EvaluationCache>("Cache", "Cache of previously evaluated solutions."));
    9997      Parameters.Add(new ValueParameter<CheckedItemCollection<IEvaluationServiceClient>>("Clients", "The clients that are used to communicate with the external application.", new CheckedItemCollection<IEvaluationServiceClient>() { new EvaluationServiceClient() }));
Note: See TracChangeset for help on using the changeset viewer.