Package org.jacop.examples.fd
Class Kakro
- java.lang.Object
-
- org.jacop.examples.fd.ExampleFD
-
- org.jacop.examples.fd.Kakro
-
public class Kakro extends ExampleFD
It is program to solve Kakro puzzles.- Version:
- 4.7
This is a program which uses Constraint Programming to find the solution to a simple Kakro puzzle. For a moment the problem representation does not allow to model the problems with fields which are both origins of the row and column word.
-
-
Constructor Summary
Constructors Constructor Description Kakro()
-
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 simple Kakro puzzle.void
model()
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
-
elements
public IntVar[][] elements
-
noRows
public int noRows
-
noColumns
public int noColumns
-
rowDescription
int[][] rowDescription
-
columnDescription
int[][] columnDescription
-
-
Method Detail
-
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 the program to solve simple Kakro puzzle.- Parameters:
args
- no parameters
-
-