org.sat4j.pb
Class PseudoOptDecorator
java.lang.Object
   org.sat4j.tools.SolverDecorator<IPBSolver>
org.sat4j.tools.SolverDecorator<IPBSolver>
       org.sat4j.pb.PBSolverDecorator
org.sat4j.pb.PBSolverDecorator
           org.sat4j.pb.PseudoOptDecorator
org.sat4j.pb.PseudoOptDecorator
- All Implemented Interfaces: 
- java.io.Serializable, IPBSolver, IOptimizationProblem, IProblem, ISolver
- public class PseudoOptDecorator 
- extends PBSolverDecorator- implements IOptimizationProblem
A decorator that computes minimal pseudo boolean models.
- Author:
- daniel
- See Also:
- Serialized Form
 
 
 
| Methods inherited from class org.sat4j.tools.SolverDecorator | 
| addAllClauses, addAtLeast, addAtMost, addClause, clearDecorated, clearLearntClauses, decorated, expireTimeout, findModel, findModel, getStat, getTimeout, getTimeoutMs, 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.ISolver | 
| addAllClauses, addAtLeast, addAtMost, addClause, clearLearntClauses, expireTimeout, getStat, getTimeout, getTimeoutMs, isDBSimplificationAllowed, newVar, newVar, printStat, printStat, removeConstr, reset, setDBSimplificationAllowed, setExpectedNumberOfClauses, setTimeout, setTimeoutMs, setTimeoutOnConflicts | 
 
PseudoOptDecorator
public PseudoOptDecorator(IPBSolver solver)
setObjectiveFunction
public void setObjectiveFunction(ObjectiveFunction objf)
- 
- Specified by:
- setObjectiveFunctionin interface- IPBSolver
- Overrides:
- setObjectiveFunctionin class- PBSolverDecorator
 
- 
 
admitABetterSolution
public boolean admitABetterSolution()
                             throws TimeoutException
- 
- Specified by:
- admitABetterSolutionin interface- IOptimizationProblem
 
- 
- Throws:
- TimeoutException
 
hasNoObjectiveFunction
public boolean hasNoObjectiveFunction()
- 
- Specified by:
- hasNoObjectiveFunctionin interface- IOptimizationProblem
 
- 
 
nonOptimalMeansSatisfiable
public boolean nonOptimalMeansSatisfiable()
- 
- Specified by:
- nonOptimalMeansSatisfiablein interface- IOptimizationProblem
 
- 
 
calculateObjective
public java.lang.Number calculateObjective()
- 
- Specified by:
- calculateObjectivein interface- IOptimizationProblem
 
- 
 
discard
public void discard()
             throws ContradictionException
- 
- Specified by:
- discardin interface- IOptimizationProblem
 
- 
- Throws:
- ContradictionException
 
model
public int[] model()
- 
- Specified by:
- modelin interface- IProblem
- Overrides:
- modelin class- SolverDecorator<IPBSolver>
 
- 
 
model
public boolean model(int var)
- 
- Specified by:
- modelin interface- IProblem
- Overrides:
- modelin class- SolverDecorator<IPBSolver>
 
- 
 
toString
public java.lang.String toString(java.lang.String prefix)
- 
- Specified by:
- toStringin interface- ISolver
- Overrides:
- toStringin class- SolverDecorator<IPBSolver>
 
- 
 
Copyright © 2009 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.