|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sat4j.minisat.orders.VarOrder<L>
public class VarOrder<L extends ILits>
Field Summary | |
---|---|
protected double[] |
activity
mesure heuristique de l'activite d'une variable. |
protected int |
lastVar
Derniere variable choisie |
protected L |
lits
|
protected int[] |
order
Ordre des variables |
protected int[] |
varpos
position des variables |
Constructor Summary | |
---|---|
VarOrder()
|
Method Summary | |
---|---|
void |
assignLiteral(int p)
indicate that a literal has been satisfied. |
ILits |
getVocabulary()
|
void |
init()
that method has the responsibility to initialize all arrays in the heuristics. |
void |
newVar()
Method called each time Solver.newVar() is called. |
void |
newVar(int howmany)
Method called when Solver.newVar(int) is called. |
int |
numberOfInterestingVariables()
|
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)
Change la valeur de varDecay. |
java.lang.String |
toString()
Affiche les litteraux dans l'ordre de l'heuristique, la valeur de l'activite entre (). |
void |
undo(int x)
Method called when a variable is unassigned. |
protected void |
updateActivity(int var)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected double[] activity
protected int lastVar
protected int[] order
protected int[] varpos
protected L extends ILits lits
Constructor Detail |
---|
public VarOrder()
Method Detail |
---|
public void setLits(L lits)
IOrder
setLits
in interface IOrder<L extends ILits>
lits
- the vocabularypublic void newVar()
IOrder
newVar
in interface IOrder<L extends ILits>
public void newVar(int howmany)
IOrder
newVar
in interface IOrder<L extends ILits>
howmany
- the maximum number of variablesSolver.newVar(int)
public int select()
IOrder
select
in interface IOrder<L extends ILits>
public void setVarDecay(double d)
setVarDecay
in interface IOrder<L extends ILits>
d
- la nouvelle valeur de varDecaypublic void undo(int x)
IOrder
undo
in interface IOrder<L extends ILits>
x
- a variable.public void updateVar(int p)
IOrder
updateVar
in interface IOrder<L extends ILits>
p
- a literal. The associated variable will be updated.protected void updateActivity(int var)
public void varDecayActivity()
IOrder
varDecayActivity
in interface IOrder<L extends ILits>
public double varActivity(int p)
IOrder
varActivity
in interface IOrder<L extends ILits>
p
- a literal
public int numberOfInterestingVariables()
public void init()
IOrder
init
in interface IOrder<L extends ILits>
public java.lang.String toString()
toString
in class java.lang.Object
public ILits getVocabulary()
public void printStat(java.io.PrintWriter out, java.lang.String prefix)
IOrder
printStat
in interface IOrder<L extends ILits>
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<L extends ILits>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |