Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/06/16 15:07:45 (7 years ago)
Author:
abeham
Message:

#2701:

  • Using evaluated solutions from HC as max evaluations for tabu walking in MemPR
  • Fixed some bugs in MemPR (permutation) regarding subspace calculation (true means okay, false means no)
  • Fixed bug in TSP
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/MemPRAlgorithm/HeuristicLab.Algorithms.MemPR/3.3/Util/FitnessComparer.cs

    r14450 r14456  
    2323  public static class FitnessComparer {
    2424    public static bool IsBetter(bool maximization, double a, double b) {
    25       return maximization && a > b
    26              || !maximization && a < b;
     25      return double.IsNaN(b) && !double.IsNaN(a)
     26        || maximization && a > b
     27        || !maximization && a < b;
    2728    }
    2829  }
Note: See TracChangeset for help on using the changeset viewer.