Changeset 17695 for branches/2521_ProblemRefactoring/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorProblem.cs
- Timestamp:
- 07/23/20 16:21:55 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorProblem.cs
r17620 r17695 22 22 #endregion 23 23 24 using System; 24 25 using System.Linq; 25 26 using HEAL.Attic; … … 65 66 protected RealVectorProblem(RealVectorEncoding encoding) : base(encoding) { 66 67 EncodingParameter.ReadOnly = true; 68 EvaluatorParameter.ReadOnly = true; 67 69 Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the real vector problem.", Encoding.LengthParameter)); 68 70 Parameters.Add(BoundsRefParameter = new ReferenceParameter<DoubleMatrix>("Bounds", "The bounding box of the values.", Encoding.BoundsParameter)); … … 83 85 84 86 results.AddOrUpdateResult("Best Solution", (IItem)best.Item1.Clone()); 87 } 88 89 protected override sealed void OnEvaluatorChanged() { 90 throw new InvalidOperationException("Evaluator may not change!"); 91 } 92 93 protected override sealed void OnEncodingChanged() { 94 throw new InvalidOperationException("Encoding may not change!"); 85 95 } 86 96
Note: See TracChangeset
for help on using the changeset viewer.