Class Queens


public class Queens extends ExampleFD
It models the queens problem in different ways as well as applies different search methods.
Version:
4.8
  • Field Details

    • numberQ

      public int numberQ
      It specifies the size of chessboard to be used in the model.
  • Constructor Details

    • Queens

      public Queens()
  • Method Details

    • modelBasic

      public void modelBasic()
      This model uses only primitive constraints.
    • modelChanneling

      public void modelChanneling()
      This model uses dual model to solve Queens problems.
    • model

      public void model()
      Description copied from class: ExampleFD
      It specifies a standard way of modeling the problem.
      Specified by:
      model in class ExampleFD
    • main

      public static void main(String[] args)
      It executes different models and search methods to solve Queens problem.
      Parameters:
      args - first argument specifies the size of the chessboard.
    • test

      public static void test(String[] args)
      It executes different models and search methods to solve Queens problem.
      Parameters:
      args - first argument specifies the size of the chessboard.