Module fr.univartois.cril.juniverse
Package fr.univartois.cril.juniverse.pb
Interface IUniversePseudoBooleanSolver
- All Superinterfaces:
IUniverseSatSolver
,IUniverseSolver
- All Known Subinterfaces:
IUniverseCSPSolver
The IUniversePseudoBooleanSolver interface defines the contract for
pseudo-Boolean solvers.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addAtLeast
(List<Integer> literals, int degree) Creates anat-least
cardinality constraint.void
addAtLeast
(List<Integer> literals, List<Integer> coefficients, int degree) Creates anat-least
pseudo-Boolean constraint.void
addAtLeast
(List<Integer> literals, List<BigInteger> coefficients, BigInteger degree) Creates anat-least
pseudo-Boolean constraint.default void
Creates anat-most
cardinality constraint.void
Creates anat-most
pseudo-Boolean constraint.void
addAtMost
(List<Integer> literals, List<BigInteger> coefficients, BigInteger degree) Creates anat-most
pseudo-Boolean constraint.default void
addExactly
(List<Integer> literals, int degree) Creates anexactly
cardinality constraint.void
addExactly
(List<Integer> literals, List<Integer> coefficients, int degree) Creates anexactly
pseudo-Boolean constraint.void
addExactly
(List<Integer> literals, List<BigInteger> coefficients, BigInteger degree) Creates anexactly
pseudo-Boolean constraint.void
addPseudoBoolean
(List<Integer> literals, List<BigInteger> coefficients, boolean moreThan, BigInteger degree) Creates a pseudo-Boolean constraint of typeat-least
orat-most
.Methods inherited from interface fr.univartois.cril.juniverse.sat.IUniverseSatSolver
addAllClauses, addClause, solveBoolean, solveDimacs
Methods inherited from interface fr.univartois.cril.juniverse.core.IUniverseSolver
addSearchListener, checkSolution, checkSolution, decisionVariables, getAuxiliaryVariables, getConstraints, getVariablesMapping, interrupt, isOptimization, loadInstance, mapSolution, mapSolution, nConstraints, nVariables, removeSearchListener, reset, setLogFile, setLogStream, setTimeout, setTimeoutMs, setVerbosity, solution, solve, solve, solve, valueHeuristicStatic
-
Method Details
-
addPseudoBoolean
void addPseudoBoolean(List<Integer> literals, List<BigInteger> coefficients, boolean moreThan, BigInteger degree) Creates a pseudo-Boolean constraint of typeat-least
orat-most
.- Parameters:
literals
- The literals of the constraint to add.coefficients
- The coefficients of the literals.moreThan
- Whether the constraint is anat-least
constraint, or anat-most
constraint.degree
- The degree of the constraint.- Throws:
UniverseContradictionException
- If the constraint to add is inconsistent.
-
addAtMost
Creates anat-most
cardinality constraint.- Parameters:
literals
- The literals of the constraint to add.degree
- The degree of the constraint.- Throws:
UniverseContradictionException
- If the constraint to add is inconsistent.
-
addAtMost
Creates anat-most
pseudo-Boolean constraint.- Parameters:
literals
- The literals of the constraint to add.coefficients
- The coefficients of the literals.degree
- The degree of the constraint.- Throws:
UniverseContradictionException
- If the constraint to add is inconsistent.
-
addAtMost
Creates anat-most
pseudo-Boolean constraint.- Parameters:
literals
- The literals of the constraint to add.coefficients
- The coefficients of the literals.degree
- The degree of the constraint.- Throws:
UniverseContradictionException
- If the constraint to add is inconsistent.
-
addAtLeast
Creates anat-least
cardinality constraint.- Parameters:
literals
- The literals of the constraint to add.degree
- The degree of the constraint.- Throws:
UniverseContradictionException
- If the constraint to add is inconsistent.
-
addAtLeast
Creates anat-least
pseudo-Boolean constraint.- Parameters:
literals
- The literals of the constraint to add.coefficients
- The coefficients of the literals.degree
- The degree of the constraint.- Throws:
UniverseContradictionException
- If the constraint to add is inconsistent.
-
addAtLeast
Creates anat-least
pseudo-Boolean constraint.- Parameters:
literals
- The literals of the constraint to add.coefficients
- The coefficients of the literals.degree
- The degree of the constraint.- Throws:
UniverseContradictionException
- If the constraint to add is inconsistent.
-
addExactly
Creates anexactly
cardinality constraint.- Parameters:
literals
- The literals of the constraint to add.degree
- The degree of the constraint.- Throws:
UniverseContradictionException
- If the constraint to add is inconsistent.
-
addExactly
Creates anexactly
pseudo-Boolean constraint.- Parameters:
literals
- The literals of the constraint to add.coefficients
- The coefficients of the literals.degree
- The degree of the constraint.- Throws:
UniverseContradictionException
- If the constraint to add is inconsistent.
-
addExactly
Creates anexactly
pseudo-Boolean constraint.- Parameters:
literals
- The literals of the constraint to add.coefficients
- The coefficients of the literals.degree
- The degree of the constraint.- Throws:
UniverseContradictionException
- If the constraint to add is inconsistent.
-