- Timestamp:
- 09/27/19 17:51:35 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.4/SingleObjectiveExternalEvaluationProblem.cs
r17270 r17279 93 93 public ExternalEvaluationProblem(TEncoding encoding) 94 94 : 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 97 96 Parameters.Add(new OptionalValueParameter<EvaluationCache>("Cache", "Cache of previously evaluated solutions.")); 98 97 Parameters.Add(new ValueParameter<CheckedItemCollection<IEvaluationServiceClient>>("Clients", "The clients that are used to communicate with the external application.", new CheckedItemCollection<IEvaluationServiceClient>() { new EvaluationServiceClient() })); … … 148 147 try { 149 148 return client.Evaluate(message, GetQualityMessageExtensions()); 150 } 151 finally { 149 } finally { 152 150 lock (clientLock) { 153 151 activeClients.Remove(client); … … 166 164 try { 167 165 MessageBuilder.AddToMessage(variable.Value, variable.Name, protobufBuilder); 168 } 169 catch (ArgumentException ex) { 166 } catch (ArgumentException ex) { 170 167 throw new InvalidOperationException(string.Format("ERROR while building solution message: Parameter {0} cannot be added to the message", Name), ex); 171 168 }
Note: See TracChangeset
for help on using the changeset viewer.