Class PDPAcsMain

java.lang.Object
org.ddolib.examples.pdp.PDPAcsMain

public final class PDPAcsMain extends Object
Single Vehicle Pick-up and Delivery Problem (PDP) with Acs. Main class for solving the Pickup and Delivery Problem (PDP) using the Anytime Column Search (ACS) algorithm.

This class demonstrates how to configure and run the ACS-based solver on an automatically generated PDP instance. The PDP consists of a set of pickup and delivery requests that must be scheduled while respecting precedence constraints and minimizing the total travel cost or time.

Execution details:

Usage example:


 // Run from the command line (no arguments required)
 java PDPAcsMain

 // Sample output:
 RemainingJobs [...]
 ----> currentTime 42
 SearchStatistics{status=OPTIMAL, iterations=..., time=...}
 

Notes:

  • The instance generation is controlled by a fixed random seed (new Random(1)) for reproducibility.
  • This example is primarily meant for experimentation and demonstration of the ACS solver.
See Also:
  • Constructor Details

    • PDPAcsMain

      public PDPAcsMain()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Entry point for the PDP ACS solver.

      Generates a random Pickup and Delivery Problem instance and solves it using the Adaptive Column Search (ACS) framework.

      Parameters:
      args - optional command-line arguments (not used in this version)
      Throws:
      IOException - if an error occurs during instance generation or file access