Package org.opt4j.satdecoding.sat4j
Class VariableOrder
java.lang.Object
org.sat4j.minisat.orders.VarOrderHeap
org.opt4j.satdecoding.sat4j.VariableOrder
- All Implemented Interfaces:
Serializable
,org.sat4j.minisat.core.IOrder
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
int
select()
void
setLits
(org.sat4j.minisat.core.ILits lits) void
setVarActivity
(int var, double value) Sets the activity of a variablevar
to the specifiedvalue
.void
setVarInc
(double value) Sets the valuevarInc
to increase the activity of the variables.void
setVarPhase
(int var, boolean phase) Sets thephase
of a variablevar
.void
updateVar
(int p) Methods inherited from class org.sat4j.minisat.orders.VarOrderHeap
assignLiteral, getPhaseSelectionStrategy, getVariableHeuristics, getVocabulary, numberOfInterestingVariables, printStat, setPhaseSelectionStrategy, setVarDecay, toString, undo, updateVarAtDecisionLevel, varActivity, varDecayActivity
-
Constructor Details
-
VariableOrder
public VariableOrder()Constructs aVariableOrder
.
-
-
Method Details
-
setLits
- Specified by:
setLits
in interfaceorg.sat4j.minisat.core.IOrder
- Overrides:
setLits
in classorg.sat4j.minisat.orders.VarOrderHeap
-
init
- Specified by:
init
in interfaceorg.sat4j.minisat.core.IOrder
- Overrides:
init
in classorg.sat4j.minisat.orders.VarOrderHeap
-
updateVar
- Specified by:
updateVar
in interfaceorg.sat4j.minisat.core.IOrder
- Overrides:
updateVar
in classorg.sat4j.minisat.orders.VarOrderHeap
-
setVarInc
Sets the valuevarInc
to increase the activity of the variables.- Parameters:
value
- the value to increase the activity of the variables
-
setVarActivity
Sets the activity of a variablevar
to the specifiedvalue
.- Parameters:
var
- the variablevalue
- the activity to set
-
setVarPhase
Sets thephase
of a variablevar
.- Parameters:
var
- the variablephase
- the phase
-
select
- Specified by:
select
in interfaceorg.sat4j.minisat.core.IOrder
- Overrides:
select
in classorg.sat4j.minisat.orders.VarOrderHeap
-