public abstract class AbstractLexicoHelper<T,C> extends DependencyHelper<T,C> implements SolutionFoundListener
BASIC_NEGATION, NO_NEGATION
VOID
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, whyNot
public 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>
TimeoutException
public boolean hasASolution(IVec<T> assumps) throws TimeoutException
hasASolution
in class DependencyHelper<T,C>
TimeoutException
public boolean hasASolution(Collection<T> assumps) throws TimeoutException
hasASolution
in class DependencyHelper<T,C>
TimeoutException
public boolean isOptimal()
public void onSolutionFound(int[] solution)
onSolutionFound
in interface SolutionFoundListener
public void onSolutionFound(IVecInt solution)
onSolutionFound
in interface SolutionFoundListener
public void onUnsatTermination()
onUnsatTermination
in interface SolutionFoundListener
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.