Esempio n. 1
0
    public static void Main(String[] args)
    {
        CapacitatedVehicleRoutingProblemWithTimeWindows problem = new CapacitatedVehicleRoutingProblemWithTimeWindows();
        int x_max                = 20;
        int y_max                = 20;
        int demand_max           = 3;
        int time_window_max      = 24 * 60;
        int time_window_width    = 4 * 60;
        int penalty_min          = 50;
        int penalty_max          = 100;
        int end_time             = 24 * 60;
        int cost_coefficient_max = 3;

        int orders   = 100;
        int vehicles = 20;
        int capacity = 50;

        problem.BuildOrders(orders, vehicles, x_max, y_max, demand_max, time_window_max, time_window_width, penalty_min,
                            penalty_max);
        problem.BuildFleet(orders, vehicles, x_max, y_max, end_time, capacity, cost_coefficient_max);
        problem.Solve(orders, vehicles);
    }
Esempio n. 2
0
    public static void Main(String[] args)
    {
        CapacitatedVehicleRoutingProblemWithTimeWindows problem =
        new CapacitatedVehicleRoutingProblemWithTimeWindows();
        int x_max = 20;
        int y_max = 20;
        int demand_max = 3;
        int time_window_max = 24 * 60;
        int time_window_width = 4 * 60;
        int penalty_min = 50;
        int penalty_max = 100;
        int end_time = 24 * 60;
        int cost_coefficient_max = 3;

        int orders = 100;
        int vehicles = 20;
        int capacity = 50;

        problem.BuildOrders(orders,
                        vehicles,
                        x_max,
                        y_max,
                        demand_max,
                        time_window_max,
                        time_window_width,
                        penalty_min,
                        penalty_max);
        problem.BuildFleet(orders,
                       vehicles,
                       x_max,
                       y_max,
                       end_time,
                       capacity,
                       cost_coefficient_max);
        problem.Solve(orders, vehicles);
    }
Esempio n. 3
0
 public static void Main(string[] args)
 {
     CapacitatedVehicleRoutingProblemWithTimeWindows.RunDemo(args);
     //CreateWebHostBuilder(args).Build().Run();
 }