Changeset 7432 for branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Operators/GreedyRandomizedSolutionCreator.cs
- Timestamp:
- 01/31/12 15:17:16 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.GeneralizedQuadraticAssignment/3.3/Operators/GreedyRandomizedSolutionCreator.cs
r7415 r7432 70 70 do { 71 71 if (L.Any() && random.NextDouble() < threshold) { 72 int l = L.Choose Random(random);72 int l = L.ChooseUniformRandom(random); 73 73 L.Remove(l); 74 74 CL.Add(l); … … 76 76 } 77 77 if (T.Any()) { 78 int f = T.Choose Random(random);78 int f = T.ChooseUniformRandom(random); 79 79 T.Remove(f); 80 80 F.Remove(f); 81 81 CF.Add(f); 82 int l = WithSlackGreaterOrEqual(CL, demands[f], slack).Choose Random(random);82 int l = WithSlackGreaterOrEqual(CL, demands[f], slack).ChooseUniformRandom(random); 83 83 assignment.Add(f, l); 84 84 slack[l] -= demands[f];
Note: See TracChangeset
for help on using the changeset viewer.