Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/31/12 15:17:16 (12 years ago)
Author:
abeham
Message:

#1614

  • updated gqap (finished path-relinking)
  • fixed some bugs
File:
1 edited

Legend:

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

    r7423 r7432  
    155155      int bestIndex;
    156156      var tmp = qualities.Select((x, index) => new { Index = index, Value = x.Value });
    157       if (maximization) bestIndex = tmp.SelectMax(x => x.Value).Index;
    158       else bestIndex = tmp.SelectMin(x => x.Value).Index;
     157      if (maximization) bestIndex = tmp.ChooseMax(x => x.Value).Index;
     158      else bestIndex = tmp.ChooseMin(x => x.Value).Index;
    159159
    160160      if (bestKnownQuality == null || HasSolutionImproved(bestKnownQuality.Value, qualities[bestIndex].Value, maximization)) {
Note: See TracChangeset for help on using the changeset viewer.