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 Detail

      • numberQ

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

      • Queens

        public Queens()
    • Method Detail

      • 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​(java.lang.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​(java.lang.String[] args)
        It executes different models and search methods to solve Queens problem.
        Parameters:
        args - first argument specifies the size of the chessboard.