Package org.jacop.examples.fd
Class BIBD
- java.lang.Object
-
- org.jacop.examples.fd.ExampleFD
-
- org.jacop.examples.fd.BIBD
-
public class BIBD extends ExampleFD
It models and solves Balanced Incomplete Block Design (BIBD) problem (CSPLIB-P28).- Version:
- 4.8
-
-
Field Summary
Fields Modifier and Type Field Description intbIt specifies number of columns in the incidence matrix.intkIt specifies number of ones in each column.intlambdaIt specifies the value of the scalar product of any two distinct rows.intrIt specifies number of ones in each row.intvIt specifies number of rows in the incidence matrix.(package private) IntVar[][]x
-
Constructor Summary
Constructors Constructor Description BIBD()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)It executes the program to solve the Langford problem.voidmodel()It specifies a standard way of modeling the problem.-
Methods inherited from class org.jacop.examples.fd.ExampleFD
creditSearch, getSearch, getSearchVariables, getStore, printMatrix, search, searchAllAtOnce, searchAllOptimal, searchLDS, searchMasterSlave, searchMaxRegretOptimal, searchMiddle, searchMostConstrainedStatic, searchOptimal, searchSmallestDomain, searchSmallestMedian, searchSmallestMiddle, searchSmallestMin, searchWeightedDegree, searchWithMaxRegret, searchWithRestarts, shavingSearch
-
-
-
-
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.
-
x
IntVar[][] x
-
-
Method Detail
-
model
public void model()
Description copied from class:ExampleFDIt specifies a standard way of modeling the problem.
-
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.
-
-