|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectExamplesJaCoP.Example
ExamplesJaCoP.Golomb
public class Golomb
It models a Golomb ruler problem.
| Field Summary | |
|---|---|
int |
bound
It specifies the upper bound of the optimal solution. |
int |
noMarks
It specifies the number of marks (number of natural numbers in the sequence). |
java.util.ArrayList<IntVar> |
subs
It contains all differences between all possible pairs of marks. |
| Fields inherited from class ExamplesJaCoP.Example |
|---|
cost, search, store, vars |
| Constructor Summary | |
|---|---|
Golomb()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
It executes the program which computes the optimal Golomb ruler. |
void |
model()
It specifies a standard way of modeling the problem. |
boolean |
searchOptimalInfo()
It specifies specific search for the optimal solution search procedure, which printouts intermediate search results and shows how the search is progressing. |
static void |
test(java.lang.String[] args)
It executes the program which first computes the optimal Golomb ruler. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int noMarks
public int bound
public java.util.ArrayList<IntVar> subs
| Constructor Detail |
|---|
public Golomb()
| Method Detail |
|---|
public void model()
Example
model in class Examplepublic boolean searchOptimalInfo()
public static void main(java.lang.String[] args)
args - the first argument specifies the number of marks, the second argument specifies the upper bound of the optimal solution.public static void test(java.lang.String[] args)
args - the first argument specifies the number of marks, the second argument specifies the upper bound of the optimal solution.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||