|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectExamplesJaCoP.Example
ExamplesJaCoP.PerfectSquare
public class PerfectSquare
It specifies an example where squares of the given size must be placed within a square of a given size.
| Field Summary | |
|---|---|
static int |
problemNo
It specifies which of the pre-defined problems should be solved. |
static int[][][] |
squares
The following table contains all the data for all problems instances. |
| Fields inherited from class ExamplesJaCoP.Example |
|---|
cost, search, store, vars |
| Constructor Summary | |
|---|---|
PerfectSquare()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
It runs a perfect square problem. |
void |
model()
It specifies a standard way of modeling the problem. |
void |
modelBasic()
It specifies the model using mostly PrimitiveConstraints. |
void |
modelGeost()
|
java.lang.String |
printLaTex(long runtime)
Enclose the output of this function inside a simple latex document like the one below. |
boolean |
search()
It specifies simple search method based on input order and lexigraphical ordering of values. |
static void |
test(java.lang.String[] args)
It runs a perfect square problem. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int problemNo
public static int[][][] squares
| Constructor Detail |
|---|
public PerfectSquare()
| Method Detail |
|---|
public static void test(java.lang.String[] args)
args - program parameters, the first one denotes the problem no to be solved.public static void main(java.lang.String[] args)
args - program parameters, the first one denotes the problem no to be solved.public void modelBasic()
public void model()
Example
model in class Examplepublic void modelGeost()
public boolean search()
Example
search in class Examplepublic java.lang.String printLaTex(long runtime)
runtime - it specifies the time required to find a solution.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||