- Timestamp:
- 05/28/20 14:41:43 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/Encoding.cs
r17226 r17567 116 116 117 117 public void ConfigureOperator(IItem @operator) { ConfigureOperators(new[] { @operator }); } 118 public abstract void ConfigureOperators(IEnumerable<IItem> operators); 118 public virtual void ConfigureOperators(IEnumerable<IItem> operators) { 119 ConfigureSingleObjectiveImprovementOperators(operators.OfType<ISingleObjectiveImprovementOperator>()); 120 } 121 122 protected virtual void ConfigureSingleObjectiveImprovementOperators(IEnumerable<ISingleObjectiveImprovementOperator> operators) { 123 foreach (var op in operators) { 124 op.SolutionParameter.ActualName = Name; 125 } 126 } 119 127 120 128 public event EventHandler SolutionCreatorChanged; -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/MultiObjectiveProblem.cs
r17320 r17567 95 95 protected set { 96 96 if (MaximizationParameter.Value.SequenceEqual(value)) return; 97 MaximizationParameter. ForceValue(new BoolArray(value, @readonly: true));97 MaximizationParameter.Value = new BoolArray(value, @readonly: true); 98 98 OnMaximizationChanged(); 99 99 } -
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/SingleObjectiveProblem.cs
r17546 r17567 61 61 protected set { 62 62 if (Maximization == value) return; 63 MaximizationParameter. ForceValue(new BoolValue(value, @readonly: true));63 MaximizationParameter.Value = new BoolValue(value, @readonly: true); 64 64 } 65 65 }
Note: See TracChangeset
for help on using the changeset viewer.