- Timestamp:
- 02/25/14 10:24:20 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Crossovers/BiasedMultiVRPSolutionCrossover.cs
r10474 r10504 143 143 if (checkedOperators.Count() > 0) { 144 144 // select a random operator from the checked operators 145 successor = checkedOperators.SampleProportional(random, 1, probabilities, false, false).First().Value;145 successor = checkedOperators.SampleProportional(random, 1, checkedOperators.Select(x => probabilities[x.Index]), false, false).First().Value; 146 146 } 147 147 -
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/Manipulators/BiasedMultiVRPSolutionManipulator.cs
r10474 r10504 144 144 // select a random operator from the checked operators 145 145 successor = 146 checkedOperators.SampleProportional(random, 1, probabilities, false, false).First().Value;146 checkedOperators.SampleProportional(random, 1, checkedOperators.Select(x => probabilities[x.Index]), false, false).First().Value; 147 147 } 148 148
Note: See TracChangeset
for help on using the changeset viewer.