Changeset 6569 for branches/QAPAlgorithms/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/AlbaStochasticLambdaInterchangeMutliMoveGenerator.cs
- Timestamp:
- 07/17/11 22:51:11 (13 years ago)
- Location:
- branches/QAPAlgorithms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/QAPAlgorithms
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/QAPAlgorithms/HeuristicLab.Problems.VehicleRouting
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.VehicleRouting merged: 6441,6448-6450,6455,6459,6491,6522-6523,6548
- Property svn:mergeinfo changed
-
branches/QAPAlgorithms/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/AlbaStochasticLambdaInterchangeMutliMoveGenerator.cs
r5445 r6569 50 50 return new AlbaStochasticLambdaInterchangeMultiMoveGenerator(this, cloner); 51 51 } 52 protected override AlbaLambdaInterchangeMove[] GenerateMoves(AlbaEncoding individual, int lambda) {53 int sampleSize = SampleSizeParameter.ActualValue.Value;54 52 53 public static AlbaLambdaInterchangeMove[] GenerateAllMoves(AlbaEncoding individual, int lambda, int sampleSize, IRandom random) { 55 54 AlbaLambdaInterchangeMove[] moves = new AlbaLambdaInterchangeMove[sampleSize]; 56 55 for (int i = 0; i < sampleSize; i++) { 57 56 moves[i] = AlbaStochasticLambdaInterchangeSingleMoveGenerator.Apply( 58 individual, Cities, lambda, RandomParameter.ActualValue);57 individual, individual.Cities, lambda, random); 59 58 } 60 59 61 60 return moves; 62 61 } 62 63 protected override AlbaLambdaInterchangeMove[] GenerateMoves(AlbaEncoding individual, int lambda) { 64 int sampleSize = SampleSizeParameter.ActualValue.Value; 65 66 return GenerateAllMoves(individual, lambda, sampleSize, RandomParameter.ActualValue); 67 } 63 68 } 64 69 }
Note: See TracChangeset
for help on using the changeset viewer.