Package org.jacop.examples.fd
Class Queens
- java.lang.Object
-
- org.jacop.examples.fd.ExampleFD
-
- org.jacop.examples.fd.Queens
-
public class Queens extends ExampleFD
It models the queens problem in different ways as well as applies different search methods.- Version:
- 4.8
-
-
Constructor Summary
Constructors Constructor Description Queens()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
It executes different models and search methods to solve Queens problem.void
model()
It specifies a standard way of modeling the problem.void
modelBasic()
This model uses only primitive constraints.void
modelChanneling()
This model uses dual model to solve Queens problems.static void
test(java.lang.String[] args)
It executes different models and search methods to solve Queens 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
-
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.
-
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.
-
-