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 voidaddAtLeast(List<Integer> literals, int degree) Creates anat-leastcardinality constraint.voidaddAtLeast(List<Integer> literals, List<Integer> coefficients, int degree) Creates anat-leastpseudo-Boolean constraint.voidaddAtLeast(List<Integer> literals, List<BigInteger> coefficients, BigInteger degree) Creates anat-leastpseudo-Boolean constraint.default voidCreates anat-mostcardinality constraint.voidCreates anat-mostpseudo-Boolean constraint.voidaddAtMost(List<Integer> literals, List<BigInteger> coefficients, BigInteger degree) Creates anat-mostpseudo-Boolean constraint.default voidaddExactly(List<Integer> literals, int degree) Creates anexactlycardinality constraint.voidaddExactly(List<Integer> literals, List<Integer> coefficients, int degree) Creates anexactlypseudo-Boolean constraint.voidaddExactly(List<Integer> literals, List<BigInteger> coefficients, BigInteger degree) Creates anexactlypseudo-Boolean constraint.voidaddPseudoBoolean(List<Integer> literals, List<BigInteger> coefficients, boolean moreThan, BigInteger degree) Creates a pseudo-Boolean constraint of typeat-leastorat-most.Methods inherited from interface fr.univartois.cril.juniverse.sat.IUniverseSatSolver
addAllClauses, addClause, solveBoolean, solveDimacsMethods 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-leastorat-most.- Parameters:
literals- The literals of the constraint to add.coefficients- The coefficients of the literals.moreThan- Whether the constraint is anat-leastconstraint, or anat-mostconstraint.degree- The degree of the constraint.- Throws:
UniverseContradictionException- If the constraint to add is inconsistent.
-
addAtMost
Creates anat-mostcardinality 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-mostpseudo-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-mostpseudo-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-leastcardinality 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-leastpseudo-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-leastpseudo-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 anexactlycardinality 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 anexactlypseudo-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 anexactlypseudo-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.
-