Changeset 15116 for stable/HeuristicLab.Problems.ExternalEvaluation/3.4/MultiObjectiveExternalEvaluationProblem.cs
- Timestamp:
- 07/03/17 22:59:37 (7 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14877
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.ExternalEvaluation/3.4/MultiObjectiveExternalEvaluationProblem.cs
r14186 r15116 155 155 try { 156 156 return client.Evaluate(message, GetQualityMessageExtensions()); 157 } finally { 157 } 158 finally { 158 159 lock (clientLock) { 159 160 activeClients.Remove(client); … … 167 168 SolutionMessage.Builder protobufBuilder = SolutionMessage.CreateBuilder(); 168 169 protobufBuilder.SolutionId = solutionId; 169 var scope = new Scope(); 170 individual.CopyToScope(scope); 171 foreach (var variable in scope.Variables) { 170 foreach (var variable in individual.Values) { 172 171 try { 173 MessageBuilder.AddToMessage(variable.Value, variable.Name, protobufBuilder); 174 } catch (ArgumentException ex) { 172 MessageBuilder.AddToMessage(variable.Value, variable.Key, protobufBuilder); 173 } 174 catch (ArgumentException ex) { 175 175 throw new InvalidOperationException(string.Format("ERROR while building solution message: Parameter {0} cannot be added to the message", Name), ex); 176 176 }
Note: See TracChangeset
for help on using the changeset viewer.