Class Model

java.lang.Object
org.opt4j.satdecoding.Model

public class Model extends Object
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 Details

  • Method Details

    • get

      public Boolean get(Object var)
      Returns the value of the variable, or null if this variable is not defined.
      Parameters:
      var - the variable
      Returns:
      true if the variable in this model is true or null if it is not defined
    • set

      public void set(Object var, boolean phase)
      Sets the variable to a phase.
      Parameters:
      var - the variable
      phase - the phase
    • getVars

      public Set<Object> 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