|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sat4j.minisat.orders.RandomWalkDecorator
public class RandomWalkDecorator
| Constructor Summary | |
|---|---|
RandomWalkDecorator(VarOrderHeap order)
|
|
RandomWalkDecorator(VarOrderHeap order,
double p)
|
|
| Method Summary | |
|---|---|
void |
assignLiteral(int q)
indicate that a literal has been satisfied. |
IPhaseSelectionStrategy |
getPhaseSelectionStrategy()
|
double |
getProbability()
|
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 |
setProbability(double p)
|
void |
setVarDecay(double d)
Sets the variable activity decay as a growing factor for the next variable activity. |
String |
toString()
|
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. |
void |
updateVarAtDecisionLevel(int q)
Allow to perform a specific action when a literal of the current decision level is updated. |
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, wait, wait, wait |
| Constructor Detail |
|---|
public RandomWalkDecorator(VarOrderHeap order)
public RandomWalkDecorator(VarOrderHeap order,
double p)
| Method Detail |
|---|
public void assignLiteral(int q)
IOrder
assignLiteral in interface IOrderpublic IPhaseSelectionStrategy getPhaseSelectionStrategy()
getPhaseSelectionStrategy in interface IOrderpublic double getProbability()
public void setProbability(double p)
public void init()
IOrder
init in interface IOrder
public void printStat(PrintWriter out,
String prefix)
IOrder
printStat in interface IOrderout - the writer to display the information inprefix - to be used in front of each newline.public int select()
IOrder
select in interface IOrderpublic void setLits(ILits lits)
IOrder
setLits in interface IOrderlits - the vocabularypublic void setPhaseSelectionStrategy(IPhaseSelectionStrategy strategy)
setPhaseSelectionStrategy in interface IOrderpublic void setVarDecay(double d)
IOrder
setVarDecay in interface IOrderd - 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 IOrderx - a variable.public void updateVar(int q)
IOrder
updateVar in interface IOrderq - a literal. The associated variable will be updated.public double varActivity(int q)
IOrder
varActivity in interface IOrderq - a literal
public void varDecayActivity()
IOrder
varDecayActivity in interface IOrderpublic void updateVarAtDecisionLevel(int q)
IOrderIOrder.updateVar(int).
updateVarAtDecisionLevel in interface IOrderq - a literalpublic String toString()
toString in class Objectpublic double[] getVariableHeuristics()
IOrder
getVariableHeuristics in interface IOrder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||