|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sat4j.tools.SolverDecorator<IPBSolver>
org.sat4j.pb.PBSolverDecorator
org.sat4j.pb.PseudoOptDecorator
public class PseudoOptDecorator
A decorator that computes minimal pseudo boolean models.
| Constructor Summary | |
|---|---|
PseudoOptDecorator(IPBSolver solver)
|
|
| Method Summary | |
|---|---|
boolean |
admitABetterSolution()
|
java.lang.Number |
calculateObjective()
|
void |
discard()
|
boolean |
hasNoObjectiveFunction()
|
int[] |
model()
|
boolean |
model(int var)
|
boolean |
nonOptimalMeansSatisfiable()
|
void |
setObjectiveFunction(ObjectiveFunction objf)
|
java.lang.String |
toString(java.lang.String prefix)
|
| Methods inherited from class org.sat4j.pb.PBSolverDecorator |
|---|
addPseudoBoolean, getExplanation, setListOfVariablesForExplanation |
| Methods inherited from class org.sat4j.tools.SolverDecorator |
|---|
addAllClauses, addAtLeast, addAtMost, addClause, clearDecorated, clearLearntClauses, decorated, expireTimeout, findModel, findModel, getStat, getTimeout, isDBSimplificationAllowed, isSatisfiable, isSatisfiable, isSatisfiable, isSatisfiable, nConstraints, newVar, newVar, nVars, printInfos, printStat, printStat, removeConstr, reset, setDBSimplificationAllowed, setExpectedNumberOfClauses, setTimeout, setTimeoutMs, setTimeoutOnConflicts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.sat4j.specs.IProblem |
|---|
findModel, findModel, isSatisfiable, isSatisfiable, isSatisfiable, isSatisfiable, nConstraints, nVars, printInfos |
| Methods inherited from interface org.sat4j.specs.ISolver |
|---|
addAllClauses, addAtLeast, addAtMost, addClause, clearLearntClauses, expireTimeout, getStat, getTimeout, isDBSimplificationAllowed, newVar, newVar, printStat, printStat, removeConstr, reset, setDBSimplificationAllowed, setExpectedNumberOfClauses, setTimeout, setTimeoutMs, setTimeoutOnConflicts |
| Constructor Detail |
|---|
public PseudoOptDecorator(IPBSolver solver)
| Method Detail |
|---|
public void setObjectiveFunction(ObjectiveFunction objf)
setObjectiveFunction in interface IPBSolversetObjectiveFunction in class PBSolverDecorator
public boolean admitABetterSolution()
throws org.sat4j.specs.TimeoutException
admitABetterSolution in interface org.sat4j.specs.IOptimizationProblemorg.sat4j.specs.TimeoutExceptionpublic boolean hasNoObjectiveFunction()
hasNoObjectiveFunction in interface org.sat4j.specs.IOptimizationProblempublic boolean nonOptimalMeansSatisfiable()
nonOptimalMeansSatisfiable in interface org.sat4j.specs.IOptimizationProblempublic java.lang.Number calculateObjective()
calculateObjective in interface org.sat4j.specs.IOptimizationProblem
public void discard()
throws org.sat4j.specs.ContradictionException
discard in interface org.sat4j.specs.IOptimizationProblemorg.sat4j.specs.ContradictionExceptionpublic int[] model()
model in interface org.sat4j.specs.IProblemmodel in class org.sat4j.tools.SolverDecorator<IPBSolver>public boolean model(int var)
model in interface org.sat4j.specs.IProblemmodel in class org.sat4j.tools.SolverDecorator<IPBSolver>public java.lang.String toString(java.lang.String prefix)
toString in interface org.sat4j.specs.ISolvertoString in class org.sat4j.tools.SolverDecorator<IPBSolver>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||