- Timestamp:
- 05/28/20 14:41:43 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblemInstances.cs
r17544 r17567 59 59 : base(new BinaryVectorEncoding()) { 60 60 Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the vector.", Encoding.LengthParameter)); 61 DimensionRefParameter. ForceValue(new IntValue(Dimension, @readonly: false));61 DimensionRefParameter.Value = new IntValue(Dimension, @readonly: false); 62 62 // TODO: Add and parameterize additional operators, 63 63 } … … 277 277 : base(new BinaryVectorEncoding()) { 278 278 Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the vector.", Encoding.LengthParameter)); 279 DimensionRefParameter. ForceValue(new IntValue(Dimension, @readonly: false));279 DimensionRefParameter.Value = new IntValue(Dimension, @readonly: false); 280 280 // TODO: Add and parameterize additional operators, 281 281 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.4/SingleObjectiveExternalEvaluationProblem.cs
r17546 r17567 93 93 public ExternalEvaluationProblem(TEncoding encoding) 94 94 : base(encoding) { 95 MaximizationParameter. ForceValue(new BoolValue()); // is a read-only bool value in base class95 MaximizationParameter.Value = new BoolValue(); // is a read-only bool value in base class TODO: change to set ReadOnly false 96 96 Parameters.Add(new OptionalValueParameter<EvaluationCache>("Cache", "Cache of previously evaluated solutions.")); 97 97 Parameters.Add(new ValueParameter<CheckedItemCollection<IEvaluationServiceClient>>("Clients", "The clients that are used to communicate with the external application.", new CheckedItemCollection<IEvaluationServiceClient>() { new EvaluationServiceClient() }));
Note: See TracChangeset
for help on using the changeset viewer.