Changeset 13388 for branches/ProblemRefactoring/HeuristicLab.Optimization
- Timestamp:
- 11/24/15 18:43:08 (9 years ago)
- Location:
- branches/ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/MultiObjectiveProblem.cs
r13361 r13388 63 63 public virtual void Analyze(TSolution[] individuals, double[][] qualities, ResultCollection results, IRandom random) { } 64 64 65 //TODO66 //protected override void OnOperatorsChanged() {67 // base.OnOperatorsChanged();68 // if (Encoding != null) {69 // PruneSingleObjectiveOperators(Encoding);70 // var multiEncoding = Encoding as MultiEncoding;71 // if (multiEncoding != null) {72 // foreach (var encoding in multiEncoding.Encodings.ToList()) {73 // PruneSingleObjectiveOperators(encoding);74 // }75 // }76 // }77 //}78 79 //private void PruneSingleObjectiveOperators(IEncoding encoding) {80 // if (encoding != null && encoding.Operators.Any(x => x is ISingleObjectiveOperator && !(x is IMultiObjectiveOperator)))81 // encoding.Operators = encoding.Operators.Where(x => !(x is ISingleObjectiveOperator) || x is IMultiObjectiveOperator).ToList();82 //}83 84 65 protected override void OnEvaluatorChanged() { 85 66 base.OnEvaluatorChanged(); -
branches/ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/SingleObjectiveProblem.cs
r13361 r13388 91 91 } 92 92 93 //TODO94 //protected override void OnOperatorsChanged() {95 // base.OnOperatorsChanged();96 // if (Encoding != null) {97 // PruneMultiObjectiveOperators(Encoding);98 // var multiEncoding = Encoding as MultiEncoding;99 // if (multiEncoding != null) {100 // foreach (var encoding in multiEncoding.Encodings.ToList()) {101 // PruneMultiObjectiveOperators(encoding);102 // }103 // }104 // }105 //}106 107 //private void PruneMultiObjectiveOperators(IEncoding<TSolution> encoding) {108 // if (encoding.Operators.Any(x => x is IMultiObjectiveOperator && !(x is ISingleObjectiveOperator)))109 // encoding.Operators = encoding.Operators.Where(x => !(x is IMultiObjectiveOperator) || x is ISingleObjectiveOperator).ToList();110 //}111 112 93 protected override void OnEvaluatorChanged() { 113 94 base.OnEvaluatorChanged();
Note: See TracChangeset
for help on using the changeset viewer.