public class Kakro extends ExampleFD
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.
Modifier and Type | Field and Description |
---|---|
IntVar[][] |
elements |
int |
noColumns |
int |
noRows |
Constructor and Description |
---|
Kakro() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
It executes the program to solve simple Kakro puzzle.
|
void |
model()
It specifies a standard way of modeling the problem.
|
creditSearch, getSearch, getSearchVariables, getStore, printMatrix, search, searchAllAtOnce, searchAllOptimal, searchLDS, searchMasterSlave, searchMaxRegretOptimal, searchMiddle, searchMostConstrainedStatic, searchOptimal, searchSmallestDomain, searchSmallestMedian, searchSmallestMiddle, searchSmallestMin, searchWeightedDegree, searchWithMaxRegret, searchWithRestarts, shavingSearch
public IntVar[][] elements
public int noRows
public int noColumns
Copyright © 2022. All rights reserved.