Class KSDdoMain

java.lang.Object
org.ddolib.examples.nolayer.knapsack.KSDdoMain

public class KSDdoMain extends Object
Knapsack Problem (KS) with DDO, using the no-layer modeling API.

This class demonstrates how to solve an instance of the Knapsack Problem using the Decision Diagram Optimization (DDO) algorithm, configuring its own relaxation, state ranking, width heuristic, dominance checker, and cluster reduction strategies on top of KSModel.

  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Entry point of the DDO demonstration for the Knapsack Problem.
      Parameters:
      args - command-line arguments (optional: instance file path)
      Throws:
      IOException - if the instance file cannot be read