|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectExamplesJaCoP.Example
ExamplesJaCoP.NonTransitiveDice
public class NonTransitiveDice
It models and solves Nontransitive Dice Problem.
| Field Summary | |
|---|---|
int |
currentBest
It specifies the currently best solution which is a bound for the next solution. |
int |
noDices
It specifies number of dices in the problem. |
int |
noSides
It specifies number of sides for each dice in the problem. |
boolean |
reuseOfNumbers
If true then faces on non consequtive faces can be the same. |
java.util.ArrayList<Constraint> |
shavingConstraints
It contains constraints which can be used for shaving guidance. |
| Fields inherited from class ExamplesJaCoP.Example |
|---|
cost, search, store, vars |
| Constructor Summary | |
|---|---|
NonTransitiveDice()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
It executes the program solving non transitive dice problem using two different methods. |
void |
model()
It specifies a standard way of modeling the problem. |
boolean |
searchSpecial()
It executes a specialized search to find a solution to this problem. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int noDices
public int noSides
public int currentBest
public java.util.ArrayList<Constraint> shavingConstraints
public boolean reuseOfNumbers
| Constructor Detail |
|---|
public NonTransitiveDice()
| Method Detail |
|---|
public void model()
Example
model in class Examplepublic boolean searchSpecial()
public static void main(java.lang.String[] args)
args - the first argument specifies number of dices, the second argument specifies the number of sides of each dice.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||