Esempio n. 1
0
        public static void Find_Solution(int [] Location, double [] DeliverDemand, int [] ServiceBegin, int [] ServiceEnd, int [] ServiceDuration, double [,] DistanceMatrix, double [,] DriveTimeMatrix, string [] VechicleName, double [] VechicleCapacity)
        {
            Console.WriteLine("\n" + "Please wait until a solution will be displyed on screen.");

            //Console.WriteLine("\n" + "Generating excel file may take several seconds.");

            GASLocation         = Location;
            GASDeliverDemand    = DeliverDemand;
            GASServiceBegin     = ServiceBegin;
            GASServiceEnd       = ServiceEnd;
            GASServiceDuration  = ServiceDuration;
            GASDistanceMatrix   = DistanceMatrix;
            GASDriveTimeMatrix  = DriveTimeMatrix;
            GASVechicleName     = VechicleName;
            GASVechicleCapacity = VechicleCapacity;

            AlgorithmSolution AS = new AlgorithmSolution();

            AS.Execute_Algorithm();

            //Console.WriteLine("\n" + "Excel file has been successfully generated and saved at location: " + Directory.GetCurrentDirectory() + @"\OutputFile");
        }
        public static void Find_Solution(int [] Location, double [] DeliverDemand, int [] ServiceBegin, int [] ServiceEnd, int [] ServiceDuration, double [,] DistanceMatrix, double [,] DriveTimeMatrix,string [] VechicleName, double [] VechicleCapacity)
        {
            Console.WriteLine("\n" + "Please wait until a solution will be displyed on screen.");

            //Console.WriteLine("\n" + "Generating excel file may take several seconds.");

            GASLocation = Location;
            GASDeliverDemand = DeliverDemand;
            GASServiceBegin = ServiceBegin;
            GASServiceEnd = ServiceEnd;
            GASServiceDuration = ServiceDuration;
            GASDistanceMatrix = DistanceMatrix;
            GASDriveTimeMatrix = DriveTimeMatrix;
            GASVechicleName = VechicleName;
            GASVechicleCapacity = VechicleCapacity;

            AlgorithmSolution AS = new AlgorithmSolution();

            AS.Execute_Algorithm();

            //Console.WriteLine("\n" + "Excel file has been successfully generated and saved at location: " + Directory.GetCurrentDirectory() + @"\OutputFile");
        }