|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IOrder<L extends ILits>
Interface for the variable ordering heuristics. It has both the responsibility to choose the next variable to branch on and the phase of the literal (positive or negative one).
| Method Summary | |
|---|---|
void |
assignLiteral(int p)
indicate that a literal has been satisfied. |
void |
init()
that method has the responsibility to initialize all arrays in the heuristics. |
void |
newVar()
Deprecated. |
void |
newVar(int howmany)
Method called when Solver.newVar(int) is called. |
void |
printStat(java.io.PrintWriter out,
java.lang.String prefix)
Display statistics regarding the heuristics. |
int |
select()
Selects the next "best" unassigned literal. |
void |
setLits(L lits)
Method used to provide an easy access the the solver vocabulary. |
void |
setVarDecay(double d)
Sets the variable activity decay as a growing factor for the next variable activity. |
void |
undo(int x)
Method called when a variable is unassigned. |
void |
updateVar(int p)
To be called when the activity of a literal changed. |
double |
varActivity(int p)
To obtain the current activity of a variable. |
void |
varDecayActivity()
Decay the variables activities. |
| Method Detail |
|---|
void setLits(L lits)
lits - the vocabulary@Deprecated void newVar()
void newVar(int howmany)
howmany - the maximum number of variablesSolver.newVar(int)int select()
void undo(int x)
x - a variable.void updateVar(int p)
p - a literal. The associated variable will be updated.void init()
void printStat(java.io.PrintWriter out,
java.lang.String prefix)
out - the writer to display the information inprefix - to be used in front of each newline.void setVarDecay(double d)
d - a number bigger than 1 that will increase the activity of the
variables involved in future conflict. This is similar but
more efficient than decaying all the activities by a similar
factor.void varDecayActivity()
double varActivity(int p)
p - a literal
void assignLiteral(int p)
p -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||