Changeset 14927 for branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblem.cs
- Timestamp:
- 05/04/17 17:19:35 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblem.cs
r14877 r14927 32 32 using HeuristicLab.Optimization; 33 33 using HeuristicLab.Parameters; 34 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;34 using HeuristicLab.Persistence; 35 35 36 36 namespace HeuristicLab.Problems.ExternalEvaluation { 37 37 [Item("External Evaluation Problem (single-objective)", "A problem that is evaluated in a different process.")] 38 38 [Creatable(CreatableAttribute.Categories.ExternalEvaluationProblems, Priority = 100)] 39 [Storable Class]39 [StorableType("2f87216f-3877-4577-8a10-435cb16bbb8a")] 40 40 // BackwardsCompatibility3.3 41 41 // Rename class to SingleObjectiveExternalEvaluationProblem … … 158 158 try { 159 159 return client.Evaluate(message, GetQualityMessageExtensions()); 160 } 161 finally { 160 } finally { 162 161 lock (clientLock) { 163 162 activeClients.Remove(client); … … 174 173 try { 175 174 MessageBuilder.AddToMessage(variable.Value, variable.Key, protobufBuilder); 176 } 177 catch (ArgumentException ex) { 175 } catch (ArgumentException ex) { 178 176 throw new InvalidOperationException(string.Format("ERROR while building solution message: Parameter {0} cannot be added to the message", Name), ex); 179 177 }
Note: See TracChangeset
for help on using the changeset viewer.