|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sat4j.minisat.orders.VarOrderHeap
public class VarOrderHeap
Field Summary | |
---|---|
protected double[] |
activity
mesure heuristique de l'activite d'une variable. |
protected Heap |
heap
|
protected ILits |
lits
|
protected IPhaseSelectionStrategy |
phaseStrategy
|
Constructor Summary | |
---|---|
VarOrderHeap()
|
|
VarOrderHeap(IPhaseSelectionStrategy strategy)
|
Method Summary | |
---|---|
void |
assignLiteral(int p)
indicate that a literal has been satisfied. |
IPhaseSelectionStrategy |
getPhaseSelectionStrategy()
|
ILits |
getVocabulary()
|
void |
init()
that method has the responsability to initialize all arrays in the heuristics. |
int |
numberOfInterestingVariables()
|
void |
printStat(PrintWriter out,
String prefix)
Display statistics regarding the heuristics. |
int |
select()
Selectionne une nouvelle variable, non affectee, ayant l'activite la plus elevee. |
void |
setLits(ILits lits)
Method used to provide an easy access the the solver vocabulary. |
void |
setPhaseSelectionStrategy(IPhaseSelectionStrategy strategy)
Change the selection strategy. |
void |
setVarDecay(double d)
Change la valeur de varDecay. |
String |
toString()
|
void |
undo(int x)
Methode appelee quand la variable x est desaffectee. |
protected void |
updateActivity(int var)
|
void |
updateVar(int p)
Appelee lorsque l'activite de la variable x a change. |
double |
varActivity(int p)
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 |
Field Detail |
---|
protected double[] activity
protected ILits lits
protected Heap heap
protected IPhaseSelectionStrategy phaseStrategy
Constructor Detail |
---|
public VarOrderHeap()
public VarOrderHeap(IPhaseSelectionStrategy strategy)
Method Detail |
---|
public void setPhaseSelectionStrategy(IPhaseSelectionStrategy strategy)
setPhaseSelectionStrategy
in interface IOrder
strategy
- public IPhaseSelectionStrategy getPhaseSelectionStrategy()
getPhaseSelectionStrategy
in interface IOrder
public void setLits(ILits lits)
IOrder
setLits
in interface IOrder
lits
- the vocabularypublic int select()
select
in interface IOrder
public void setVarDecay(double d)
setVarDecay
in interface IOrder
d
- la nouvelle valeur de varDecaypublic void undo(int x)
undo
in interface IOrder
x
- public void updateVar(int p)
updateVar
in interface IOrder
p
- a literalprotected void updateActivity(int var)
public void varDecayActivity()
IOrder
varDecayActivity
in interface IOrder
public double varActivity(int p)
IOrder
varActivity
in interface IOrder
p
- a literal
public int numberOfInterestingVariables()
public void init()
init
in interface IOrder
public String toString()
toString
in class Object
public ILits getVocabulary()
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 void assignLiteral(int p)
IOrder
assignLiteral
in interface IOrder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |