Changeset 17695 for branches/2521_ProblemRefactoring/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationMultiObjectiveProblem.cs
- Timestamp:
- 07/23/20 16:21:55 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationMultiObjectiveProblem.cs
r17620 r17695 22 22 #endregion 23 23 24 using System; 24 25 using System.Linq; 25 26 using HEAL.Attic; … … 64 65 protected PermutationMultiObjectiveProblem(PermutationEncoding encoding) : base(encoding) { 65 66 EncodingParameter.ReadOnly = true; 67 EvaluatorParameter.ReadOnly = true; 66 68 Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the permutation problem.", Encoding.LengthParameter)); 67 69 Parameters.Add(PermutationTypeRefParameter = new ReferenceParameter<EnumValue<PermutationTypes>>("Type", "The type of the permutation.", Encoding.PermutationTypeParameter)); … … 80 82 var plot = new ParetoFrontScatterPlot<Permutation>(fronts, individuals, qualities, Objectives, BestKnownFront); 81 83 results.AddOrUpdateResult("Pareto Front Scatter Plot", plot); 84 } 85 86 protected override sealed void OnEvaluatorChanged() { 87 throw new InvalidOperationException("Evaluator may not change!"); 88 } 89 90 protected override sealed void OnEncodingChanged() { 91 throw new InvalidOperationException("Encoding may not change!"); 82 92 } 83 93
Note: See TracChangeset
for help on using the changeset viewer.