Changeset 17570 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblemInstances.cs
- Timestamp:
- 05/28/20 16:26:46 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.ExternalEvaluation/3.4/ExternalEvaluationProblemInstances.cs
r17567 r17570 45 45 46 46 public int Dimension { 47 get => Encoding.Length;48 set => Encoding.Length= value;47 get => DimensionRefParameter.Value.Value; 48 set => DimensionRefParameter.Value.Value = value; 49 49 } 50 50 … … 59 59 : base(new BinaryVectorEncoding()) { 60 60 Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the vector.", Encoding.LengthParameter)); 61 DimensionRefParameter.Value = new IntValue(Dimension, @readonly: false);62 61 // TODO: Add and parameterize additional operators, 63 62 } … … 263 262 264 263 public int Dimension { 265 get => Encoding.Length;266 set => Encoding.Length= value;264 get => DimensionRefParameter.Value.Value; 265 set => DimensionRefParameter.Value.Value = value; 267 266 } 268 267 … … 277 276 : base(new BinaryVectorEncoding()) { 278 277 Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the vector.", Encoding.LengthParameter)); 279 DimensionRefParameter.Value = new IntValue(Dimension, @readonly: false);280 278 // TODO: Add and parameterize additional operators, 281 279 }
Note: See TracChangeset
for help on using the changeset viewer.