- Timestamp:
- 07/23/20 16:21:55 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Encodings.IntegerVectorEncoding/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorMultiObjectiveProblem.cs
r17620 r17695 22 22 #endregion 23 23 24 using System; 24 25 using System.Linq; 25 26 using HEAL.Attic; … … 66 67 protected IntegerVectorMultiObjectiveProblem(IntegerVectorEncoding encoding) : base(encoding) { 67 68 EncodingParameter.ReadOnly = true; 69 EvaluatorParameter.ReadOnly = true; 68 70 Parameters.Add(BestResultParameter = new ResultParameter<ParetoFrontScatterPlot<IntegerVector>>("Best Pareto Front", "The best Pareto front found.")); 69 71 Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the integer vector problem.", Encoding.LengthParameter)); … … 84 86 85 87 BestResultParameter.ActualValue = plot; 88 } 89 90 protected override sealed void OnEvaluatorChanged() { 91 throw new InvalidOperationException("Evaluator may not change!"); 92 } 93 94 protected override sealed void OnEncodingChanged() { 95 throw new InvalidOperationException("Encoding may not change!"); 86 96 } 87 97 -
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.