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/Operators/GreedyRandomizedSolutionCreator.cs

    r7415 r7432  
    7070        do {
    7171          if (L.Any() && random.NextDouble() < threshold) {
    72             int l = L.ChooseRandom(random);
     72            int l = L.ChooseUniformRandom(random);
    7373            L.Remove(l);
    7474            CL.Add(l);
     
    7676          }
    7777          if (T.Any()) {
    78             int f = T.ChooseRandom(random);
     78            int f = T.ChooseUniformRandom(random);
    7979            T.Remove(f);
    8080            F.Remove(f);
    8181            CF.Add(f);
    82             int l = WithSlackGreaterOrEqual(CL, demands[f], slack).ChooseRandom(random);
     82            int l = WithSlackGreaterOrEqual(CL, demands[f], slack).ChooseUniformRandom(random);
    8383            assignment.Add(f, l);
    8484            slack[l] -= demands[f];
Note: See TracChangeset for help on using the changeset viewer.