|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkodkod.engine.Solution
public final class Solution
Represents the full solution to a formula: an instance if the formula is satisfiable or a proof of unsatisfiability if not.
formula: Formula // the formula being solved |
bounds: Bounds // the bounds on the formula |
Nested Class Summary | |
---|---|
static class |
Solution.Outcome
Enumerates the possible outcomes of an attempt to find a model for a FOL formula. |
Method Summary | |
---|---|
Instance |
instance()
Returns a satisfiying instance for this.formula, if the value returned by this.outcome() is either
SATISFIABLE or TRIVIALLY_SATISFIABLE. |
Solution.Outcome |
outcome()
Returns the outcome of the attempt to find a model for this.formula. |
Proof |
proof()
Returns a proof of this.formula's unsatisfiability if the value returned by this.outcome() is UNSATISFIABLE or
TRIVIALLY_UNSATISFIABLE, translation logging was enabled during solving,
and a core extracting sat solver (if any)
was used to determine unsatisfiability. |
Statistics |
stats()
Returns the statistics gathered while solving this.formula. |
java.lang.String |
toString()
Returns a string representation of this Solution. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Solution.Outcome outcome()
instance()
.
If the formula is UNSATISFIABLE, a proof of unsatisfiability
can be obtained by calling proof()
provided that
translation logging was enabled and the unsatisfiability was
determined using a core extracting
sat solver
.
Lastly, if the returned Outcome is
or TRIVIALLY_UNSATISFIABLE, a proof of unsatisfiability can
be obtained by calling proof()
provided that
translation logging was enabled.
public Instance instance()
this.outcome()
is either
SATISFIABLE or TRIVIALLY_SATISFIABLE. Otherwise returns null.
public Proof proof()
this.outcome()
is UNSATISFIABLE or
TRIVIALLY_UNSATISFIABLE, translation logging was enabled during solving,
and a core extracting sat solver
(if any)
was used to determine unsatisfiability.
Otherwise, null is returned.
public Statistics stats()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |