Ejemplo n.º 1
0
        protected override AlbaIntraRouteInversionMove[] GenerateMoves(AlbaEncoding individual, IVRPProblemInstance problemInstance)
        {
            int sampleSize = SampleSizeParameter.ActualValue.Value;

            AlbaIntraRouteInversionMove[] moves = new AlbaIntraRouteInversionMove[sampleSize];
            for (int i = 0; i < sampleSize; i++)
            {
                moves[i] = AlbaStochasticIntraRouteInversionSingleMoveGenerator.Apply(
                    individual, problemInstance.Cities.Value, RandomParameter.ActualValue);
            }

            return(moves);
        }
 private AlbaStochasticIntraRouteInversionSingleMoveGenerator(AlbaStochasticIntraRouteInversionSingleMoveGenerator original, Cloner cloner)
     : base(original, cloner)
 {
 }
 private AlbaStochasticIntraRouteInversionSingleMoveGenerator(AlbaStochasticIntraRouteInversionSingleMoveGenerator original, Cloner cloner)
   : base(original, cloner) {
 }