|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectExamplesJaCoP.Example
ExamplesJaCoP.LatinSquare
public class LatinSquare
It solves a Latin Square problem. LatinSquare problem consists of filling the square of size n by n with numbers 1..n in such a way that every row and column does not contain two numbers of the same value. QuasiGroupCompletion example provides possibility to impose initial conditions on the values of pre-assigned cells.
| Field Summary | |
|---|---|
int |
n
The size of the latin square. |
| Fields inherited from class ExamplesJaCoP.Example |
|---|
cost, search, store, vars |
| Constructor Summary | |
|---|---|
LatinSquare()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
It executes the program to solve the LatinSquare problem. |
void |
model()
It specifies a standard way of modeling the problem. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int n
| Constructor Detail |
|---|
public LatinSquare()
| Method Detail |
|---|
public void model()
Example
model in class Examplepublic static void main(java.lang.String[] args)
args -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||