Package org.jacop.examples.fd
Class Langford
- java.lang.Object
-
- org.jacop.examples.fd.ExampleFD
-
- org.jacop.examples.fd.Langford
-
public class Langford extends ExampleFD
It solves Langford problem.- Version:
- 4.7
-
-
Constructor Summary
Constructors Constructor Description Langford()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
It executes the program to solve the Langford problem.void
model()
It specifies a standard way of modeling the problem.void
modelDual()
It uses the dual model.static void
test(java.lang.String[] args)
It 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
-
-
-
-
Method Detail
-
model
public void model()
Description copied from class:ExampleFD
It specifies a standard way of modeling the problem.
-
modelDual
public void modelDual()
It uses the dual model.
-
test
public static void test(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.
-
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.
-
-