Class KSAStarMain

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

public final class KSAStarMain extends Object
Knapsack Problem (KS) with A*, using the no-layer modeling API.

This class demonstrates how to solve an instance of the Knapsack Problem using the A* search algorithm, reusing the fast lower bound defined by KSModel.

  • Method Details

    • main

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