- Timestamp:
- 07/28/11 14:16:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Moves/LambdaInterchange/AlbaStochasticLambdaInterchangeMutliMoveGenerator.cs
r5867 r6607 62 62 } 63 63 64 protected override AlbaLambdaInterchangeMove[] GenerateMoves(AlbaEncoding individual, IVRPProblemInstance problemInstance, int lambda) { 65 int sampleSize = SampleSizeParameter.ActualValue.Value; 66 64 public static AlbaLambdaInterchangeMove[] GenerateAllMoves(AlbaEncoding individual, IVRPProblemInstance problemInstance, int lambda, int sampleSize, IRandom rand) { 67 65 AlbaLambdaInterchangeMove[] moves = new AlbaLambdaInterchangeMove[sampleSize]; 68 66 for (int i = 0; i < sampleSize; i++) { 69 67 moves[i] = AlbaStochasticLambdaInterchangeSingleMoveGenerator.Apply( 70 individual, problemInstance.Cities.Value, lambda, RandomParameter.ActualValue);68 individual, problemInstance.Cities.Value, lambda, rand); 71 69 } 72 70 73 71 return moves; 74 72 } 73 74 protected override AlbaLambdaInterchangeMove[] GenerateMoves(AlbaEncoding individual, IVRPProblemInstance problemInstance, int lambda) { 75 return GenerateAllMoves(individual, problemInstance, lambda, SampleSizeParameter.Value.Value, RandomParameter.ActualValue); 76 } 75 77 } 76 78 }
Note: See TracChangeset
for help on using the changeset viewer.