|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sat4j.minisat.orders.RandomWalkDecorator
public final class RandomWalkDecorator
Constructor Summary | |
---|---|
RandomWalkDecorator(IOrder order)
|
|
RandomWalkDecorator(IOrder order,
double p)
|
Method Summary | |
---|---|
void |
assignLiteral(int q)
indicate that a literal has been satisfied. |
IPhaseSelectionStrategy |
getPhaseSelectionStrategy()
|
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 q)
To be called when the activity of a literal changed. |
double |
varActivity(int q)
To obtain the current activity of a variable. |
void |
varDecayActivity()
Decay the variables activities. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomWalkDecorator(IOrder order)
public RandomWalkDecorator(IOrder order, double p)
Method Detail |
---|
public void assignLiteral(int q)
IOrder
assignLiteral
in interface IOrder
public IPhaseSelectionStrategy getPhaseSelectionStrategy()
getPhaseSelectionStrategy
in interface IOrder
public void init()
IOrder
init
in interface IOrder
public void printStat(PrintWriter out, String prefix)
IOrder
printStat
in interface IOrder
out
- the writer to display the information inprefix
- to be used in front of each newline.public int select()
IOrder
select
in interface IOrder
public void setLits(ILits lits)
IOrder
setLits
in interface IOrder
lits
- the vocabularypublic void setPhaseSelectionStrategy(IPhaseSelectionStrategy strategy)
setPhaseSelectionStrategy
in interface IOrder
public void setVarDecay(double d)
IOrder
setVarDecay
in interface IOrder
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.public void undo(int x)
IOrder
undo
in interface IOrder
x
- a variable.public void updateVar(int q)
IOrder
updateVar
in interface IOrder
q
- a literal. The associated variable will be updated.public double varActivity(int q)
IOrder
varActivity
in interface IOrder
q
- a literal
public void varDecayActivity()
IOrder
varDecayActivity
in interface IOrder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |