Changeset 13725 for branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Data/MISCInstanceProvider.cs
- Timestamp:
- 03/24/16 12:30:32 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Data/MISCInstanceProvider.cs
r13672 r13725 47 47 var otherProviders = ApplicationManager.Manager.GetInstances<IProblemInstanceProvider<MOTFData>>().Where(x => x.Equals(this)); 48 48 var evaluators = ApplicationManager.Manager.GetInstances<IMultiObjectiveTestFunction>() 49 .Where(x => ! handles(otherProviders,x))49 .Where(x => !Handled(x)) 50 50 .OrderBy(x => x.Name); 51 51 return evaluators.Select(x => new MOTFDataDescriptor(x)); 52 52 } 53 53 54 private bool handles(IEnumerable<IProblemInstanceProvider<MOTFData>> others, IMultiObjectiveTestFunction x) { 55 foreach (var o in others) { 56 foreach (var instance in o.GetDataDescriptors()) { 57 if (instance.Equals(x)) return true; 58 } 59 } 60 return false; 54 private bool Handled(IMultiObjectiveTestFunction f) { 55 56 57 return f is DTLZ || f is ZDT; 61 58 } 62 59
Note: See TracChangeset
for help on using the changeset viewer.