org.sat4j.pb
Class ConstraintRelaxingPseudoOptDecorator
java.lang.Object
org.sat4j.tools.SolverDecorator<IPBSolver>
org.sat4j.pb.PBSolverDecorator
org.sat4j.pb.ConstraintRelaxingPseudoOptDecorator
- All Implemented Interfaces:
- Serializable, IPBSolver, IOptimizationProblem, IProblem, ISolver
public class ConstraintRelaxingPseudoOptDecorator
- extends PBSolverDecorator
- implements IOptimizationProblem
- Author:
- lonca
- See Also:
- Serialized Form
Methods inherited from class org.sat4j.tools.SolverDecorator |
addAllClauses, addAtLeast, addAtMost, addBlockingClause, addClause, addExactly, clearDecorated, clearLearntClauses, decorated, expireTimeout, findModel, findModel, getLogPrefix, getSearchListener, getStat, getTimeout, getTimeoutMs, isDBSimplificationAllowed, isSolverKeptHot, isVerbose, model, model, modelWithInternalVariables, nConstraints, newVar, newVar, nextFreeVarId, nVars, primeImplicant, primeImplicant, printInfos, printStat, printStat, realNumberOfVariables, registerLiteral, removeConstr, removeSubsumedConstr, reset, setDBSimplificationAllowed, setExpectedNumberOfClauses, setKeepSolverHot, setLogPrefix, setSearchListener, setTimeout, setTimeoutMs, setTimeoutOnConflicts, setVerbose, toString, unsatExplanation |
Methods inherited from interface org.sat4j.specs.ISolver |
addAllClauses, addAtLeast, addAtMost, addBlockingClause, addClause, addExactly, clearLearntClauses, expireTimeout, getLogPrefix, getSearchListener, getStat, getTimeout, getTimeoutMs, isDBSimplificationAllowed, isSolverKeptHot, isVerbose, modelWithInternalVariables, newVar, nextFreeVarId, printStat, printStat, realNumberOfVariables, registerLiteral, removeConstr, removeSubsumedConstr, reset, setDBSimplificationAllowed, setExpectedNumberOfClauses, setKeepSolverHot, setLogPrefix, setSearchListener, setTimeout, setTimeoutMs, setTimeoutOnConflicts, setVerbose, unsatExplanation |
ConstraintRelaxingPseudoOptDecorator
public ConstraintRelaxingPseudoOptDecorator(IPBSolver solver)
isSatisfiable
public boolean isSatisfiable()
throws TimeoutException
- Specified by:
isSatisfiable
in interface IProblem
- Overrides:
isSatisfiable
in class SolverDecorator<IPBSolver>
- Throws:
TimeoutException
isSatisfiable
public boolean isSatisfiable(boolean global)
throws TimeoutException
- Specified by:
isSatisfiable
in interface IProblem
- Overrides:
isSatisfiable
in class SolverDecorator<IPBSolver>
- Throws:
TimeoutException
isSatisfiable
public boolean isSatisfiable(IVecInt assumps,
boolean global)
throws TimeoutException
- Specified by:
isSatisfiable
in interface IProblem
- Overrides:
isSatisfiable
in class SolverDecorator<IPBSolver>
- Throws:
TimeoutException
isSatisfiable
public boolean isSatisfiable(IVecInt assumps)
throws TimeoutException
- Specified by:
isSatisfiable
in interface IProblem
- Overrides:
isSatisfiable
in class SolverDecorator<IPBSolver>
- Throws:
TimeoutException
admitABetterSolution
public boolean admitABetterSolution()
throws TimeoutException
- Specified by:
admitABetterSolution
in interface IOptimizationProblem
- Throws:
TimeoutException
admitABetterSolution
public boolean admitABetterSolution(IVecInt assumps)
throws TimeoutException
- Specified by:
admitABetterSolution
in interface IOptimizationProblem
- Throws:
TimeoutException
hasNoObjectiveFunction
public boolean hasNoObjectiveFunction()
- Specified by:
hasNoObjectiveFunction
in interface IOptimizationProblem
nonOptimalMeansSatisfiable
public boolean nonOptimalMeansSatisfiable()
- Specified by:
nonOptimalMeansSatisfiable
in interface IOptimizationProblem
calculateObjective
@Deprecated
public Number calculateObjective()
- Deprecated.
- Specified by:
calculateObjective
in interface IOptimizationProblem
getObjectiveValue
public Number getObjectiveValue()
- Specified by:
getObjectiveValue
in interface IOptimizationProblem
forceObjectiveValueTo
public void forceObjectiveValueTo(Number forcedValue)
throws ContradictionException
- Specified by:
forceObjectiveValueTo
in interface IOptimizationProblem
- Throws:
ContradictionException
discard
@Deprecated
public void discard()
- Deprecated.
- Specified by:
discard
in interface IOptimizationProblem
discardCurrentSolution
public void discardCurrentSolution()
- Specified by:
discardCurrentSolution
in interface IOptimizationProblem
isOptimal
public boolean isOptimal()
- Specified by:
isOptimal
in interface IOptimizationProblem
toString
public String toString(String prefix)
- Specified by:
toString
in interface ISolver
- Overrides:
toString
in class SolverDecorator<IPBSolver>
Copyright © 2012 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.