Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/24/16 12:30:32 (8 years ago)
Author:
bwerth
Message:

#1087 minor bugfixes, added Parameters to Analyzers, convenience Tooltips for ScatterPlot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.MultiObjectiveTestFunctions/HeuristicLab.Problems.MultiObjectiveTestFunctions/3.3/Data/MISCInstanceProvider.cs

    r13672 r13725  
    4747      var otherProviders = ApplicationManager.Manager.GetInstances<IProblemInstanceProvider<MOTFData>>().Where(x => x.Equals(this));
    4848      var evaluators = ApplicationManager.Manager.GetInstances<IMultiObjectiveTestFunction>()
    49                                                  .Where(x => !handles(otherProviders, x))
     49                                                 .Where(x => !Handled(x))
    5050                                                 .OrderBy(x => x.Name);
    5151      return evaluators.Select(x => new MOTFDataDescriptor(x));
    5252    }
    5353
    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;
    6158    }
    6259
Note: See TracChangeset for help on using the changeset viewer.