ExamplesJaCoP
Class Kakro

java.lang.Object
  extended by ExamplesJaCoP.Example
      extended by ExamplesJaCoP.Kakro

public class Kakro
extends Example

It is program to solve Kakro puzzles.

Author:
Radoslaw Szymanek 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.

Field Summary
 IntVar[][] elements
           
 int noColumns
           
 int noRows
           
 
Fields inherited from class ExamplesJaCoP.Example
cost, search, store, vars
 
Constructor Summary
Kakro()
           
 
Method Summary
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 ExamplesJaCoP.Example
creditSearch, getSearch, getSearchVariables, getStore, printMatrix, search, searchAllAtOnce, searchAllOptimal, searchLDS, searchMasterSlave, searchMaxRegretOptimal, searchMiddle, searchMostConstrainedStatic, searchOptimal, searchSmallestDomain, searchSmallestMedian, searchSmallestMiddle, searchSmallestMin, searchWeightedDegree, searchWithMaxRegret, searchWithRestarts, shavingSearch
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elements

public IntVar[][] elements

noRows

public int noRows

noColumns

public int noColumns
Constructor Detail

Kakro

public Kakro()
Method Detail

model

public void model()
Description copied from class: Example
It specifies a standard way of modeling the problem.

Specified by:
model in class Example

main

public static void main(java.lang.String[] args)
It executes the program to solve simple Kakro puzzle.

Parameters:
args -