Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/28/11 14:16:21 (13 years ago)
Author:
svonolfe
Message:

Merged changes from trunk (#1561) into branch (#1177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Alba/Moves/LambdaInterchange/AlbaStochasticLambdaInterchangeMutliMoveGenerator.cs

    r5867 r6607  
    6262    }
    6363
    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) {
    6765      AlbaLambdaInterchangeMove[] moves = new AlbaLambdaInterchangeMove[sampleSize];
    6866      for (int i = 0; i < sampleSize; i++) {
    6967        moves[i] = AlbaStochasticLambdaInterchangeSingleMoveGenerator.Apply(
    70           individual, problemInstance.Cities.Value, lambda, RandomParameter.ActualValue);
     68          individual, problemInstance.Cities.Value, lambda, rand);
    7169      }
    7270
    7371      return moves;
    7472    }
     73
     74    protected override AlbaLambdaInterchangeMove[] GenerateMoves(AlbaEncoding individual, IVRPProblemInstance problemInstance, int lambda) {
     75      return GenerateAllMoves(individual, problemInstance, lambda, SampleSizeParameter.Value.Value, RandomParameter.ActualValue);
     76    }
    7577  }
    7678}
Note: See TracChangeset for help on using the changeset viewer.