|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOrder
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. |
IPhaseSelectionStrategy |
getPhaseSelectionStrategy()
|
double[] |
getVariableHeuristics()
Read-Only access to the value of the heuristics for each variable. |
void |
init()
that method has the responsibility to initialize all arrays in the heuristics. |
void |
printStat(PrintWriter out,
String prefix)
Display statistics regarding the heuristics. |
int |
select()
Selects the next "best" unassigned literal. |
void |
setLits(ILits lits)
Method used to provide an easy access the the solver vocabulary. |
void |
setPhaseSelectionStrategy(IPhaseSelectionStrategy strategy)
|
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. |
void |
updateVarAtDecisionLevel(int q)
Allow to perform a specific action when a literal of the current decision level is updated. |
double |
varActivity(int p)
To obtain the current activity of a variable. |
void |
varDecayActivity()
Decay the variables activities. |
Method Detail |
---|
void setLits(ILits lits)
lits
- the vocabularyint 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(PrintWriter out, 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
- void setPhaseSelectionStrategy(IPhaseSelectionStrategy strategy)
IPhaseSelectionStrategy getPhaseSelectionStrategy()
void updateVarAtDecisionLevel(int q)
updateVar(int)
.
q
- a literaldouble[] getVariableHeuristics()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |