Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/14/12 15:59:39 (12 years ago)
Author:
abeham
Message:

#1614, #1848

  • updated extension methods and operators that use them
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Analyzers/BestGQAPSolutionAnalyzer.cs

    r7470 r7807  
    157157      int bestIndex;
    158158      var tmp = qualities.Select((x, index) => new { Index = index, Value = x.Value });
    159       if (maximization) bestIndex = tmp.ChooseMax(x => x.Value).Index;
    160       else bestIndex = tmp.ChooseMin(x => x.Value).Index;
     159      if (maximization) bestIndex = tmp.MaxItems(x => x.Value).First().Index;
     160      else bestIndex = tmp.MinItems(x => x.Value).First().Index;
    161161
    162162      if (bestKnownQuality == null || HasSolutionImproved(bestKnownQuality.Value, qualities[bestIndex].Value, maximization)) {
Note: See TracChangeset for help on using the changeset viewer.