Package org.opt4j.satdecoding
Class Model
java.lang.Object
org.opt4j.satdecoding.Model
The
Model is a data structure that represents a solution of the given
problem, i.e., all Literals are set such that all Constraints
specified by the AbstractSATDecoder are feasible.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Model
public Model()
-
-
Method Details
-
get
Returns the value of the variable, or null if this variable is not defined.- Parameters:
var- the variable- Returns:
trueif the variable in this model is true ornullif it is not defined
-
set
Sets the variable to a phase.- Parameters:
var- the variablephase- the phase
-
getVars
Returns all variables of the model.- Returns:
- all variables
-
pairs
Returns the entry set: The entry pairs of all variables to the boolean values.- Returns:
- the entry set
-