Package org.jacop.examples.fd
Class Sudoku
java.lang.Object
org.jacop.examples.fd.ExampleFD
org.jacop.examples.fd.Sudoku
A simple model to solve Sudoku problem.
- Version:
- 4.8
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
It specifies the main executable function creating a model for a particular Sudoku.void
model()
It specifies a standard way of modeling the problem.void
It specifies the model using mostly primitive constraints.static void
It specifies the testing function creating a model for a particular Sudoku.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
-
elements
IntVar[][] elements
-
-
Constructor Details
-
Sudoku
public Sudoku()
-
-
Method Details
-
model
public void model()Description copied from class:ExampleFD
It specifies a standard way of modeling the problem. -
modelBasic
public void modelBasic()It specifies the model using mostly primitive constraints. -
main
It specifies the main executable function creating a model for a particular Sudoku.- Parameters:
args
- not used.
-
test
It specifies the testing function creating a model for a particular Sudoku.- Parameters:
args
- not used.
-