Exemple #1
0
        public static AlbaLambdaInterchangeMove[] GenerateAllMoves(AlbaEncoding individual, IVRPProblemInstance problemInstance, int lambda, int sampleSize, IRandom rand)
        {
            AlbaLambdaInterchangeMove[] moves = new AlbaLambdaInterchangeMove[sampleSize];
            for (int i = 0; i < sampleSize; i++)
            {
                moves[i] = AlbaStochasticLambdaInterchangeSingleMoveGenerator.Apply(
                    individual, problemInstance.Cities.Value, lambda, rand);
            }

            return(moves);
        }
Exemple #2
0
 private AlbaStochasticLambdaInterchangeSingleMoveGenerator(AlbaStochasticLambdaInterchangeSingleMoveGenerator original, Cloner cloner)
     : base(original, cloner)
 {
 }
 private AlbaStochasticLambdaInterchangeSingleMoveGenerator(AlbaStochasticLambdaInterchangeSingleMoveGenerator original, Cloner cloner)
   : base(original, cloner) {
 }