public class PreprocCardConstrLearningSolver<S extends IPBSolver> extends ManyCorePB<IPBSolver>
numberOfSolvers, solversVOIDVOID| Constructor and Description |
|---|
PreprocCardConstrLearningSolver(ASolverFactory<IPBSolver> factory,
String solverName) |
PreprocCardConstrLearningSolver(IPBSolver solverToFill) |
PreprocCardConstrLearningSolver(IPBSolver solverToFill,
boolean outputCardsAndExit) |
| Modifier and Type | Method and Description |
|---|---|
IConstr |
addAtLeast(IVecInt literals,
IVec<BigInteger> coeffs,
BigInteger degree)
Create a pseudo-boolean constraint of the type "at least".
|
IConstr |
addAtLeast(IVecInt literals,
IVecInt coeffs,
int degree)
Create a pseudo-boolean constraint of the type "at least".
|
IConstr |
addClause(IVecInt literals) |
IConstr |
addPseudoBoolean(IVecInt lits,
IVec<BigInteger> coeffs,
boolean moreThan,
BigInteger d)
Create a Pseudo-Boolean constraint of the type "at least n or at most n
of those literals must be satisfied"
|
IVecInt |
createBlockingClauseForCurrentModel() |
void |
expireTimeout() |
BigInteger |
getObjMinBound() |
<I extends ISolverService> |
getSearchListener() |
List<IPBSolver> |
getSolvers() |
Map<String,Number> |
getStat() |
void |
init() |
boolean |
isSatisfiable() |
boolean |
isSatisfiable(boolean globalTimeout) |
boolean |
isSatisfiable(IVecInt assumps) |
boolean |
isSatisfiable(IVecInt assumps,
boolean globalTimeout) |
int[] |
model() |
boolean |
model(int var) |
int[] |
modelWithInternalVariables() |
int[] |
primeImplicant() |
boolean |
primeImplicant(int p) |
void |
printInfos(PrintWriter out) |
void |
printInfos(PrintWriter out,
String prefix) |
void |
printStat(PrintStream out,
String prefix)
Deprecated.
|
void |
printStat(PrintWriter out) |
void |
printStat(PrintWriter out,
String prefix)
Deprecated.
|
boolean |
removeConstr(IConstr c) |
IVecInt |
searchCardFromClause(IVecInt clause) |
void |
setAuthorizedExtLits(IVecInt lits) |
void |
setInstance(String instance) |
void |
setPreprocessing(boolean preprocessing) |
void |
setPrintCards(boolean b) |
void |
setRissLocation(String property) |
<I extends ISolverService> |
setSearchListener(SearchListener<I> sl) |
void |
setVerbose(boolean value) |
String |
toString() |
String |
toString(String prefix) |
IVecInt |
unsatExplanation() |
addAtMost, addAtMost, addExactly, addExactly, getObjectiveFunction, setObjectiveFunctionaddAllClauses, addAtLeast, addAtMost, addBlockingClause, addConstr, addExactly, addParity, clearLearntClauses, discardCurrentModel, findModel, findModel, getLogPrefix, getOriginInModel, getSolvingEngine, getTimeout, getTimeoutMs, getWinnerId, isDBSimplificationAllowed, isSolverKeptHot, isVerbose, learnUnit, nConstraints, newVar, newVar, nextFreeVarId, nVars, onFinishWithAnswer, provideUnitClauses, realNumberOfVariables, registerLiteral, removeSubsumedConstr, reset, setDBSimplificationAllowed, setExpectedNumberOfClauses, setKeepSolverHot, setLogPrefix, setTimeout, setTimeoutMs, setTimeoutOnConflicts, setUnitClauseConsumer, setUnitClauseProviderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAllClauses, addAtLeast, addAtMost, addBlockingClause, addConstr, addExactly, addParity, clearLearntClauses, discardCurrentModel, getLogPrefix, getOriginInModel, getSolvingEngine, getTimeout, getTimeoutMs, isDBSimplificationAllowed, isSolverKeptHot, isVerbose, newVar, nextFreeVarId, realNumberOfVariables, registerLiteral, removeSubsumedConstr, reset, setDBSimplificationAllowed, setExpectedNumberOfClauses, setKeepSolverHot, setLogPrefix, setTimeout, setTimeoutMs, setTimeoutOnConflicts, setUnitClauseConsumer, setUnitClauseProviderpublic PreprocCardConstrLearningSolver(ASolverFactory<IPBSolver> factory, String solverName)
public PreprocCardConstrLearningSolver(IPBSolver solverToFill)
public PreprocCardConstrLearningSolver(IPBSolver solverToFill, boolean outputCardsAndExit)
public void init()
public void setPreprocessing(boolean preprocessing)
public IConstr addClause(IVecInt literals) throws ContradictionException
public IConstr addPseudoBoolean(IVecInt lits, IVec<BigInteger> coeffs, boolean moreThan, BigInteger d) throws ContradictionException
IPBSolveraddPseudoBoolean in interface IPBSolveraddPseudoBoolean in class ManyCorePB<IPBSolver>lits - a set of literals. The vector can be reused since the solver
is not supposed to keep a reference to that vector.coeffs - the coefficients of the literals. The vector can be reused
since the solver is not supposed to keep a reference to that
vector.moreThan - true if it is a constraint >= degree, false if it is a
constraint <= degreed - the degree of the cardinality constraintContradictionException - iff the vector of literals is empty or if the constraint is
falsified after unit propagationISolver.removeConstr(IConstr)public IConstr addAtLeast(IVecInt literals, IVecInt coeffs, int degree) throws ContradictionException
IPBSolveraddAtLeast in interface IPBSolveraddAtLeast in class ManyCorePB<IPBSolver>literals - a set of literals. The vector can be reused since the solver
is not supposed to keep a reference to that vector.coeffs - the coefficients of the literals. The vector can be reused
since the solver is not supposed to keep a reference to that
vector.degree - the degree of the pseudo-boolean constraintContradictionException - iff the constraint is found trivially unsat.ISolver.removeConstr(IConstr)public IConstr addAtLeast(IVecInt literals, IVec<BigInteger> coeffs, BigInteger degree) throws ContradictionException
IPBSolveraddAtLeast in interface IPBSolveraddAtLeast in class ManyCorePB<IPBSolver>literals - a set of literals. The vector can be reused since the solver
is not supposed to keep a reference to that vector.coeffs - the coefficients of the literals. The vector can be reused
since the solver is not supposed to keep a reference to that
vector.degree - the degree of the pseudo-boolean constraintContradictionException - iff the constraint is found trivially unsat.ISolver.removeConstr(IConstr)public void expireTimeout()
expireTimeout in interface ISolverexpireTimeout in class ManyCore<IPBSolver>@Deprecated public void printStat(PrintStream out, String prefix)
@Deprecated public void printStat(PrintWriter out, String prefix)
public boolean isSatisfiable()
throws TimeoutException
isSatisfiable in interface IProblemisSatisfiable in class ManyCore<IPBSolver>TimeoutExceptionpublic boolean isSatisfiable(IVecInt assumps, boolean globalTimeout) throws TimeoutException
isSatisfiable in interface IProblemisSatisfiable in class ManyCore<IPBSolver>TimeoutExceptionpublic boolean isSatisfiable(boolean globalTimeout)
throws TimeoutException
isSatisfiable in interface IProblemisSatisfiable in class ManyCore<IPBSolver>TimeoutExceptionpublic boolean isSatisfiable(IVecInt assumps) throws TimeoutException
isSatisfiable in interface IProblemisSatisfiable in class ManyCore<IPBSolver>TimeoutExceptionpublic int[] model()
public boolean model(int var)
model in interface RandomAccessModelmodel in class ManyCore<IPBSolver>public void printInfos(PrintWriter out, String prefix)
printInfos in interface IProblemprintInfos in class ManyCore<IPBSolver>public <I extends ISolverService> void setSearchListener(SearchListener<I> sl)
setSearchListener in interface ISolversetSearchListener in class ManyCore<IPBSolver>public <I extends ISolverService> SearchListener<I> getSearchListener()
getSearchListener in interface ISolvergetSearchListener in class ManyCore<IPBSolver>public void setVerbose(boolean value)
setVerbose in interface ISolversetVerbose in class ManyCore<IPBSolver>public IVecInt unsatExplanation()
unsatExplanation in interface ISolverunsatExplanation in class ManyCore<IPBSolver>public int[] primeImplicant()
primeImplicant in interface IProblemprimeImplicant in class ManyCore<IPBSolver>public boolean primeImplicant(int p)
primeImplicant in interface IProblemprimeImplicant in class ManyCore<IPBSolver>public List<IPBSolver> getSolvers()
getSolvers in class ManyCore<IPBSolver>public int[] modelWithInternalVariables()
modelWithInternalVariables in interface ISolvermodelWithInternalVariables in class ManyCore<IPBSolver>public void printStat(PrintWriter out)
public void printInfos(PrintWriter out)
printInfos in interface IProblemprintInfos in class ManyCore<IPBSolver>public void setPrintCards(boolean b)
public void setRissLocation(String property)
public void setInstance(String instance)
public void setAuthorizedExtLits(IVecInt lits)
public BigInteger getObjMinBound()
public boolean removeConstr(IConstr c)
removeConstr in interface ISolverremoveConstr in class ManyCore<IPBSolver>public IVecInt createBlockingClauseForCurrentModel()
createBlockingClauseForCurrentModel in interface ISolvercreateBlockingClauseForCurrentModel in class ManyCore<IPBSolver>Copyright © 2020 Centre de Recherche en Informatique de Lens (CRIL). All rights reserved.