Class Minimal4InclusionModel

  extended by
      extended by
All Implemented Interfaces:, IProblem, ISolver

public class Minimal4InclusionModel
extends SolverDecorator

Computes models with a minimal subset (with respect to set inclusion) of negative literals. This is done be adding a clause containing the negation of the negative literals appearing in the model found (which prevents any interpretation containing that subset of negative literals to be a model of the formula). Computes only one model minimal for inclusion, since there is currently no way to save the state of the solver.

See Also:
ISolver.addClause(IVecInt), Serialized Form

Constructor Summary
Minimal4InclusionModel(ISolver solver)
Method Summary
 int[] model()
          Provide a model (if any) for a satisfiable formula.
Methods inherited from class
addAllClauses, addAtLeast, addAtMost, addClause, addPseudoBoolean, decorated, getTimeout, isSatisfiable, isSatisfiable, nConstraints, newVar, newVar, nVars, printStat, removeConstr, reset, setTimeout, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public Minimal4InclusionModel(ISolver solver)
solver -
Method Detail


public int[] model()
Description copied from interface: IProblem
Provide a model (if any) for a satisfiable formula. That method should be called AFTER isSatisfiable() if the formula is satisfiable. Else an exception UnsupportedOperationException is launched.

Specified by:
model in interface IProblem
model in class SolverDecorator
a model of the formula as an array of literals to satisfy.