|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectExamplesJaCoP.Example
ExamplesJaCoP.MagicSquares
public class MagicSquares
It solves a Magic squares problem.
| Field Summary | |
|---|---|
java.util.ArrayList<Constraint> |
guidingShaving
It specifies the list of constraints which can be used for guiding shaving. |
int |
number
It specifies the number |
| Fields inherited from class ExamplesJaCoP.Example |
|---|
cost, search, store, vars |
| Constructor Summary | |
|---|---|
MagicSquares()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
It executes the program which solves the MagicSquare problem. |
void |
model()
It specifies a standard way of modeling the problem. |
void |
model4Shaving()
It creates the model with specification of what constraint can help in guiding shaving. |
void |
modelBound()
It specifies the model which uses only variables with BoundDomain. |
void |
modelDual()
IT creates a dual model. |
static void |
test(java.lang.String[] args)
It executes the program which solves the MagicSquare problem using many different model and searches. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int number
public java.util.ArrayList<Constraint> guidingShaving
| Constructor Detail |
|---|
public MagicSquares()
| Method Detail |
|---|
public void model()
Example
model in class Examplepublic void modelBound()
public void model4Shaving()
public void modelDual()
public static void test(java.lang.String[] args)
args - the first argument allows to specify the size of magic square.public static void main(java.lang.String[] args)
args - the first argument allows to specify the size of magic square.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||