Class BIBD


  • public class BIBD
    extends ExampleFD
    It models and solves Balanced Incomplete Block Design (BIBD) problem (CSPLIB-P28).
    Version:
    4.8
    • Field Detail

      • v

        public int v
        It specifies number of rows in the incidence matrix.
      • b

        public int b
        It specifies number of columns in the incidence matrix.
      • r

        public int r
        It specifies number of ones in each row.
      • k

        public int k
        It specifies number of ones in each column.
      • lambda

        public int lambda
        It specifies the value of the scalar product of any two distinct rows.
    • Constructor Detail

      • BIBD

        public BIBD()
    • Method Detail

      • 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 the program to solve the Langford problem. It is possible to specify two parameters. If no parameter is used then default values for n and m are used.
        Parameters:
        args - the first parameter denotes n, the second parameter denotes m.