Class GRDdoMain

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

public class GRDdoMain extends Object
Golomb Rule Problem (GRP) with Ddo. Main class for solving the Golomb Ruler Problem (GRP) using a Dynamic Discrete Optimization (DDO) approach.

This class demonstrates how to create a Golomb Ruler problem instance, define a DDO model with relaxation and state ranking, and solve the problem using Solvers.minimizeDdo(DdoModel, java.util.function.BiConsumer). The solution and search statistics are printed to the console.

  • Constructor Details

    • GRDdoMain

      public GRDdoMain()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Entry point of the application.

      The method performs the following steps:

      1. Creates a Golomb Ruler problem instance with 9 marks.
      2. Defines a DDO model for the problem, including:
      3. Solves the problem using the DDO solver.
      4. Prints the solution and search statistics to the console.
      Parameters:
      args - command-line arguments (not used)
      Throws:
      IOException - if an I/O error occurs while printing the solution