|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.sat4j.minisat.orders.VarOrderHeap
org.opt4j.satdecoding.sat4j.VariableOrder
public class VariableOrder
A VariableOrder implementation for the SAT4J interface.
(not documented, see Sat4J.org)
| Field Summary | |
|---|---|
protected boolean[] |
phase
|
protected static double |
VAR_RESCALE_BOUND
|
protected static double |
VAR_RESCALE_FACTOR
|
protected double |
varInc
|
| Fields inherited from class org.sat4j.minisat.orders.VarOrderHeap |
|---|
activity, heap, lits, phaseStrategy |
| Constructor Summary | |
|---|---|
VariableOrder()
Constructs a VariableOrder. |
|
| Method Summary | |
|---|---|
void |
init()
|
int |
select()
|
void |
setLits(org.sat4j.minisat.core.ILits lits)
|
void |
setVarActivity(int var,
double value)
Sets the activity of a variable var to the specified
value. |
void |
setVarInc(double value)
Sets the value varInc to increase the activity of the variables. |
void |
setVarPhase(int var,
boolean phase)
Sets the phase of a variable var. |
protected void |
updateActivity(int var)
|
protected void |
updateActivity(int var,
double value)
Increments the activity of a variable var by the specified
value. |
void |
updateVar(int p)
|
protected void |
varRescaleActivity()
Rescales the activities of the variables. |
| Methods inherited from class org.sat4j.minisat.orders.VarOrderHeap |
|---|
assignLiteral, getPhaseSelectionStrategy, getVariableHeuristics, getVocabulary, numberOfInterestingVariables, printStat, setPhaseSelectionStrategy, setVarDecay, toString, undo, updateVarAtDecisionLevel, varActivity, varDecayActivity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final double VAR_RESCALE_FACTOR
protected static final double VAR_RESCALE_BOUND
protected double varInc
protected boolean[] phase
| Constructor Detail |
|---|
public VariableOrder()
VariableOrder.
| Method Detail |
|---|
public void setLits(org.sat4j.minisat.core.ILits lits)
setLits in interface org.sat4j.minisat.core.IOrdersetLits in class org.sat4j.minisat.orders.VarOrderHeappublic void init()
init in interface org.sat4j.minisat.core.IOrderinit in class org.sat4j.minisat.orders.VarOrderHeapprotected void updateActivity(int var)
updateActivity in class org.sat4j.minisat.orders.VarOrderHeap
protected void updateActivity(int var,
double value)
var by the specified
value.
var - the variablevalue - the value to increment the variablepublic void updateVar(int p)
updateVar in interface org.sat4j.minisat.core.IOrderupdateVar in class org.sat4j.minisat.orders.VarOrderHeappublic void setVarInc(double value)
varInc to increase the activity of the variables.
value - the value to increase the activity of the variablesprotected void varRescaleActivity()
public void setVarActivity(int var,
double value)
var to the specified
value.
var - the variablevalue - the activity to set
public void setVarPhase(int var,
boolean phase)
phase of a variable var.
var - the variablephase - the phasepublic int select()
select in interface org.sat4j.minisat.core.IOrderselect in class org.sat4j.minisat.orders.VarOrderHeap
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||