Package org.jacop.examples.fd
Class Langford
java.lang.Object
org.jacop.examples.fd.ExampleFD
org.jacop.examples.fd.Langford
It solves Langford problem.
- Version:
- 4.10
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidIt executes the program to solve the Langford problem.voidmodel()It specifies a standard way of modeling the problem.voidIt uses the dual model.static voidIt executes the program to solve the Langford 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 Details
-
n
public int n -
m
public int m
-
-
Constructor Details
-
Langford
public Langford()
-
-
Method Details
-
model
public void model()Description copied from class:ExampleFDIt specifies a standard way of modeling the problem. -
modelDual
public void modelDual()It uses the dual model. -
test
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.
-
main
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.
-