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