public abstract class AbstractLexicoHelper<T,C> extends DependencyHelper<T,C> implements SolutionFoundListener
BASIC_NEGATION, NO_NEGATIONVOID| Constructor and Description |
|---|
AbstractLexicoHelper(LexicoDecoratorPB lexico) |
AbstractLexicoHelper(LexicoDecoratorPB lexico,
boolean explanationEnabled) |
AbstractLexicoHelper(LexicoDecoratorPB lexico,
boolean explanationEnabled,
boolean canonicalOptFunctionEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCriterion(Collection<T> things) |
void |
addWeightedCriterion(Collection<WeightedObject<T>> things) |
boolean |
hasASolution() |
boolean |
hasASolution(Collection<T> assumps) |
boolean |
hasASolution(IVec<T> assumps) |
boolean |
isOptimal() |
void |
onSolutionFound(int[] solution) |
void |
onSolutionFound(IVecInt solution) |
void |
onUnsatTermination() |
addToObjectiveFunction, addToObjectiveFunction, and, atLeast, atLeast, atMost, atMost, atMost, atMost, clause, discard, discardSolutionsWithObjectiveValueGreaterThan, disjunction, getASolution, getBooleanValueFor, getIntValue, getIntValue, getMappingToDomain, getNumberOfConstraints, getNumberOfVariables, getObjectiveFunction, getSolution, getSolutionCost, getSolver, halfOr, iff, ifThenElse, implication, impliedBy, not, or, reset, setFalse, setNegator, setObjectiveFunction, setTrue, stopExplanation, stopSolver, why, why, whyNotpublic AbstractLexicoHelper(LexicoDecoratorPB lexico)
public AbstractLexicoHelper(LexicoDecoratorPB lexico, boolean explanationEnabled)
public AbstractLexicoHelper(LexicoDecoratorPB lexico, boolean explanationEnabled, boolean canonicalOptFunctionEnabled)
public void addCriterion(Collection<T> things)
public void addWeightedCriterion(Collection<WeightedObject<T>> things)
public boolean hasASolution()
throws TimeoutException
hasASolution in class DependencyHelper<T,C>TimeoutExceptionpublic boolean hasASolution(IVec<T> assumps) throws TimeoutException
hasASolution in class DependencyHelper<T,C>TimeoutExceptionpublic boolean hasASolution(Collection<T> assumps) throws TimeoutException
hasASolution in class DependencyHelper<T,C>TimeoutExceptionpublic boolean isOptimal()
public void onSolutionFound(int[] solution)
onSolutionFound in interface SolutionFoundListenerpublic void onSolutionFound(IVecInt solution)
onSolutionFound in interface SolutionFoundListenerpublic void onUnsatTermination()
onUnsatTermination in interface SolutionFoundListenerCopyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.