Changeset 15281 for branches/Async/HeuristicLab.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblem.cs
- Timestamp:
- 07/23/17 11:17:18 (8 years ago)
- Location:
- branches/Async
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Async
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/Async/HeuristicLab.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblem.cs
r15280 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 158 158 try { 159 159 return client.Evaluate(message, GetQualityMessageExtensions()); 160 } finally { 160 } 161 finally { 161 162 lock (clientLock) { 162 163 activeClients.Remove(client); … … 170 171 SolutionMessage.Builder protobufBuilder = SolutionMessage.CreateBuilder(); 171 172 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) { 175 174 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) { 178 178 throw new InvalidOperationException(string.Format("ERROR while building solution message: Parameter {0} cannot be added to the message", Name), ex); 179 179 }
Note: See TracChangeset
for help on using the changeset viewer.