Changeset 15108 for stable/HeuristicLab.Optimization/3.3/BasicProblems
- Timestamp:
- 07/03/17 09:35:48 (7 years ago)
- Location:
- stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 15084
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimization
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Optimization merged: 15084
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimization/3.3/BasicProblems/MultiObjectiveBasicProblem.cs
r14186 r15108 74 74 if (encoding != null && encoding.Operators.Any(x => x is ISingleObjectiveOperator && !(x is IMultiObjectiveOperator))) 75 75 encoding.Operators = encoding.Operators.Where(x => !(x is ISingleObjectiveOperator) || x is IMultiObjectiveOperator).ToList(); 76 77 foreach (var multiOp in Encoding.Operators.OfType<IMultiOperator>()) { 78 foreach (var soOp in multiOp.Operators.Where(x => x is ISingleObjectiveOperator).ToList()) { 79 multiOp.RemoveOperator(soOp); 80 } 81 } 76 82 } 77 83 -
stable/HeuristicLab.Optimization/3.3/BasicProblems/SingleObjectiveBasicProblem.cs
r14186 r15108 100 100 if (encoding.Operators.Any(x => x is IMultiObjectiveOperator && !(x is ISingleObjectiveOperator))) 101 101 encoding.Operators = encoding.Operators.Where(x => !(x is IMultiObjectiveOperator) || x is ISingleObjectiveOperator).ToList(); 102 103 foreach (var multiOp in Encoding.Operators.OfType<IMultiOperator>()) { 104 foreach (var moOp in multiOp.Operators.Where(x => x is IMultiObjectiveOperator).ToList()) { 105 multiOp.RemoveOperator(moOp); 106 } 107 } 102 108 } 103 109
Note: See TracChangeset
for help on using the changeset viewer.