- Timestamp:
- 07/23/20 16:21:55 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Encodings.LinearLinkageEncoding/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.LinearLinkageEncoding/3.4/LinearLinkageMultiObjectiveProblem.cs
r17620 r17695 22 22 #endregion 23 23 24 using System; 24 25 using System.Linq; 25 26 using HEAL.Attic; … … 58 59 protected LinearLinkageMultiObjectiveProblem(LinearLinkageEncoding encoding) : base(new LinearLinkageEncoding()) { 59 60 EncodingParameter.ReadOnly = true; 61 EvaluatorParameter.ReadOnly = true; 60 62 Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the linear linkage problem.", Encoding.LengthParameter)); 61 63 … … 74 76 var plot = new ParetoFrontScatterPlot<LinearLinkage>(fronts, individuals, qualities, Objectives, BestKnownFront); 75 77 results.AddOrUpdateResult("Pareto Front Scatter Plot", plot); 78 } 79 80 protected override sealed void OnEvaluatorChanged() { 81 throw new InvalidOperationException("Evaluator may not change!"); 82 } 83 84 protected override sealed void OnEncodingChanged() { 85 throw new InvalidOperationException("Encoding may not change!"); 76 86 } 77 87 -
branches/2521_ProblemRefactoring/HeuristicLab.Encodings.LinearLinkageEncoding/3.4/LinearLinkageProblem.cs
r17620 r17695 22 22 #endregion 23 23 24 using System; 24 25 using System.Linq; 25 26 using HEAL.Attic; … … 58 59 protected LinearLinkageProblem(LinearLinkageEncoding encoding) : base(encoding) { 59 60 EncodingParameter.ReadOnly = true; 61 EvaluatorParameter.ReadOnly = true; 60 62 Parameters.Add(DimensionRefParameter = new ReferenceParameter<IntValue>("Dimension", "The dimension of the linear linkage problem.", Encoding.LengthParameter)); 61 63 … … 74 76 75 77 results.AddOrUpdateResult("Best Solution", (Item)best.Item1.Clone()); 78 } 79 80 protected override sealed void OnEvaluatorChanged() { 81 throw new InvalidOperationException("Evaluator may not change!"); 82 } 83 84 protected override sealed void OnEncodingChanged() { 85 throw new InvalidOperationException("Encoding may not change!"); 76 86 } 77 87
Note: See TracChangeset
for help on using the changeset viewer.