Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/03/17 22:59:37 (7 years ago)
Author:
mkommend
Message:

#2774: Merged r14877 into stable.

Location:
stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblem.cs

    r14186 r15116  
    158158      try {
    159159        return client.Evaluate(message, GetQualityMessageExtensions());
    160       } finally {
     160      }
     161      finally {
    161162        lock (clientLock) {
    162163          activeClients.Remove(client);
     
    170171        SolutionMessage.Builder protobufBuilder = SolutionMessage.CreateBuilder();
    171172        protobufBuilder.SolutionId = solutionId;
    172         var scope = new Scope();
    173         individual.CopyToScope(scope);
    174         foreach (var variable in scope.Variables) {
     173        foreach (var variable in individual.Values) {
    175174          try {
    176             MessageBuilder.AddToMessage(variable.Value, variable.Name, protobufBuilder);
    177           } catch (ArgumentException ex) {
     175            MessageBuilder.AddToMessage(variable.Value, variable.Key, protobufBuilder);
     176          }
     177          catch (ArgumentException ex) {
    178178            throw new InvalidOperationException(string.Format("ERROR while building solution message: Parameter {0} cannot be added to the message", Name), ex);
    179179          }
Note: See TracChangeset for help on using the changeset viewer.