Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/27/19 17:51:35 (5 years ago)
Author:
mkommend
Message:

#2521: Updated single-objective problem to include a static is better method and fixed setter of maximization property.

File:
1 edited

Legend:

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

    r17270 r17279  
    9393    public ExternalEvaluationProblem(TEncoding encoding)
    9494      : base(encoding) {
    95       MaximizationParameter.ReadOnly = false;
    96       MaximizationParameter.Value = new BoolValue(); // is a read-only boolvalue in base class
     95      MaximizationParameter.Value = new BoolValue(); // is a read-only bool value in base class
    9796      Parameters.Add(new OptionalValueParameter<EvaluationCache>("Cache", "Cache of previously evaluated solutions."));
    9897      Parameters.Add(new ValueParameter<CheckedItemCollection<IEvaluationServiceClient>>("Clients", "The clients that are used to communicate with the external application.", new CheckedItemCollection<IEvaluationServiceClient>() { new EvaluationServiceClient() }));
     
    148147      try {
    149148        return client.Evaluate(message, GetQualityMessageExtensions());
    150       }
    151       finally {
     149      } finally {
    152150        lock (clientLock) {
    153151          activeClients.Remove(client);
     
    166164          try {
    167165            MessageBuilder.AddToMessage(variable.Value, variable.Name, protobufBuilder);
    168           }
    169           catch (ArgumentException ex) {
     166          } catch (ArgumentException ex) {
    170167            throw new InvalidOperationException(string.Format("ERROR while building solution message: Parameter {0} cannot be added to the message", Name), ex);
    171168          }
Note: See TracChangeset for help on using the changeset viewer.