Class GRAcsMain

java.lang.Object
org.ddolib.examples.gruler.GRAcsMain

public class GRAcsMain extends Object
Golomb Rule Problem (GRP) with Acs.

This program demonstrates how to:

  • Build a specific instance of the GRProblem (Golomb Ruler problem);
  • Wrap it into an AcsModel to define the optimization model used by the ACS algorithm;
  • Invoke the Solvers to perform the search via the minimizeAcs() method;
  • Monitor the search progress by printing incumbent (best found) solutions;
  • Display final search statistics at the end of execution.
  • Constructor Details

    • GRAcsMain

      public GRAcsMain()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Main entry point of the program.

      Creates and solves a GRProblem instance using the ACS algorithm implemented by the Solvers class.

      Parameters:
      args - command-line arguments (not used)
      Throws:
      IOException - if any I/O error occurs during problem initialization or result export