- java.lang.Object
-
- org.chocosolver.solver.DefaultSettings
-
-
Constructor Summary
Constructors Constructor Description DefaultSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkDeclaredConstraints()
boolean
checkModel(Solver solver)
boolean
cloneVariableArrayInPropagator()
String
defaultPrefix()
Define the prefix of internally created variables (through a call toIVariableFactory.generateName()
boolean
enableACOnTernarySum()
boolean
enableDecompositionOfBooleanSum()
byte
enableHybridizationOfPropagationEngine()
boolean
enableIncrementalityOnBoolSum(int nbvars)
boolean
enableSAT()
boolean
enableTableSubstitution()
boolean
enableViews()
boolean
explainGlobalFailureInSum()
Settings
explainGlobalFailureInSum(boolean b)
Set to true to allow additional clauses to be learned from sum's global failureICondition
getEnvironmentHistorySimulationCondition()
int
getLearntClausesDominancePerimeter()
When a clause is learnt from a conflict, it may happen that it dominates previously learnt ones.int
getMaxDomSizeForEnumerated()
int
getMaxLearntClauseCardinality()
int
getMaxTupleSizeForSubstitution()
double
getMCRDecimalPrecision()
int
getMinCardForSumDecomposition()
int
getNbMaxLearntClauses()
float
getRatioForClauseStoreReduction()
when clauses store need to be reduced, 'ratio' of them are kept (between 0.1 and .99)String
getWelcomeMessage()
Solver
initSolver(Model model)
This method is called inModel(IEnvironment, String, Settings)
to create the solver to associate with a model.AbstractStrategy
makeDefaultSearch(Model model)
Creates a default search strategy for the input modelboolean
printAllUndeclaredConstraints()
DefaultSettings
setCheckDeclaredConstraints(boolean checkDeclaredConstraints)
Indicate if the declared constraints are either posted or reified.DefaultSettings
setCloneVariableArrayInPropagator(boolean cloneVariableArrayInPropagator)
If this setting is set to true (default value), a clone of the input variable array is made in any propagator constructors.DefaultSettings
setDefaultPrefix(String defaultPrefix)
Define prefix of internally created variablesDefaultSettings
setDefaultSearch(Function<Model,AbstractStrategy> defaultSearch)
Define a default search strategy for the input modelSettings
setEnableACOnTernarySum(boolean enable)
If this is set to true then AC algorithm is used to filter ternary sum by default, otherwise, BC is used.DefaultSettings
setEnableDecompositionOfBooleanSum(boolean enableDecompositionOfBooleanSum)
Define if boolean sums should be decomposed into an equality constraint + arithmetic constraintDefaultSettings
setEnableIncrementalityOnBoolSum(IntPredicate enableIncrementalityOnBoolSum)
Define the predicate to choose incremental sum, based on number variables declaredDefaultSettings
setEnableSAT(boolean enableSAT)
Indicate if clauses are managed by a unique SAT solver.DefaultSettings
setEnableTableSubstitution(boolean enableTableSubstitution)
Define whether some intension constraints are replaced by extension constraintsDefaultSettings
setEnableViews(boolean enableViews)
Set to 'true' to allow the creation of views in theModel
.DefaultSettings
setEnvironmentHistorySimulationCondition(ICondition environmentHistorySimulationCondition)
Set the condition to satisfy when rebuilding history of backtrackable objects is needed.Settings
setHybridizationOfPropagationEngine(byte hybrid)
Define behavior of the propagation engine.DefaultSettings
setInitSolver(Function<Model,Solver> initSolver)
Define the solver initializationSettings
setLearntClausesDominancePerimeter(int n)
When a clause is learnt from a conflict, it may happen that it dominates previously learnt ones.DefaultSettings
setMaxDomSizeForEnumerated(int maxDomSizeForEnumerated)
Define the minimum number of cardinality threshold to a sum/scalar constraint to be decomposed in intermediate sub-sums.Settings
setMaxLearntClauseCardinality(int n)
Set the maximum learnt clause cardinality, clauses beyond this value are ignored.DefaultSettings
setMaxTupleSizeForSubstitution(int maxTupleSizeForSubstitution)
Define the maximum domain size threshold to replace intension constraints by extension constraints Only checked whenSettings.enableTableSubstitution()
returnstrue
Settings
setMCRDecimalPrecision(double precision)
Defines the default smallest used double forIIntConstraintFactory.multiCostRegular(IntVar[], IntVar[], ICostAutomaton)
algorithmSettings
setMinCardinalityForSumDecomposition(int defaultMinCardinalityForSumDecomposition)
Define the default minimum number of cardinality threshold to a sum/scalar constraint to be decomposed into intermediate sub-sums.DefaultSettings
setModelChecker(Predicate<Solver> modelChecker)
Define what to do when a solution is found.Settings
setNbMaxLearntClauses(int n)
Set the maximum of number of learnt clauses to store before running a reduction of the store.Settings
setPrintAllUndeclaredConstraints(boolean printAllUndeclaredConstraints)
Indicate if all undeclared constraints are listed on console whenSettings.checkDeclaredConstraints()
is on.Settings
setRatioForClauseStoreReduction(float f)
when clauses store need to be reduced, 'ratio' of them are kept (between 0.1 and .99).DefaultSettings
setSortPropagatorActivationWRTPriority(boolean sortPropagatorActivationWRTPriority)
Set whether propagators are sorted wrt their priority inPropagationEngine
when dealing with propagator activation.DefaultSettings
setSwapOnPassivate(boolean swapOnPassivate)
Define if passivation of propagator swap it in variables' listDefaultSettings
setWarnUser(boolean warnUser)
To be informed of warnings detected during modeling/solvingDefaultSettings
setWelcomeMessage(String welcomeMessage)
Define the welcome message, printed in the consoleboolean
sortPropagatorActivationWRTPriority()
boolean
swapOnPassivate()
boolean
warnUser()
-
-
-
Method Detail
-
getWelcomeMessage
public String getWelcomeMessage()
- Specified by:
getWelcomeMessage
in interfaceSettings
- Returns:
- the welcome message
-
setWelcomeMessage
public DefaultSettings setWelcomeMessage(String welcomeMessage)
Description copied from interface:Settings
Define the welcome message, printed in the console- Specified by:
setWelcomeMessage
in interfaceSettings
- Parameters:
welcomeMessage
- a message- Returns:
- the current instance
-
checkModel
public boolean checkModel(Solver solver)
- Specified by:
checkModel
in interfaceSettings
- Parameters:
solver
- the solver- Returns:
- true if the model is OK wrt the checker, false otherwise
-
setModelChecker
public DefaultSettings setModelChecker(Predicate<Solver> modelChecker)
Description copied from interface:Settings
Define what to do when a solution is found. By default, it makes a weak check of the model:return !ESat.FALSE.equals(solver.isSatisfied());
return ESat.TRUE.equals(solver.isSatisfied());
- Specified by:
setModelChecker
in interfaceSettings
- Parameters:
modelChecker
- a predicate to check the solution- Returns:
- the current instance
-
enableViews
public boolean enableViews()
- Specified by:
enableViews
in interfaceSettings
- Returns:
- true if views are enabled.
-
setEnableViews
public DefaultSettings setEnableViews(boolean enableViews)
Description copied from interface:Settings
Set to 'true' to allow the creation of views in theModel
. Creates new variables with channeling constraints otherwise.- Specified by:
setEnableViews
in interfaceSettings
- Parameters:
enableViews
-true
to enable views- Returns:
- the current instance
-
getMaxDomSizeForEnumerated
public int getMaxDomSizeForEnumerated()
- Specified by:
getMaxDomSizeForEnumerated
in interfaceSettings
- Returns:
- maximum domain size threshold to force integer variable to be enumerated
-
setMaxDomSizeForEnumerated
public DefaultSettings setMaxDomSizeForEnumerated(int maxDomSizeForEnumerated)
Description copied from interface:Settings
Define the minimum number of cardinality threshold to a sum/scalar constraint to be decomposed in intermediate sub-sums.- Specified by:
setMaxDomSizeForEnumerated
in interfaceSettings
- Parameters:
maxDomSizeForEnumerated
- cardinality threshold- Returns:
- the current instance
-
getMinCardForSumDecomposition
public int getMinCardForSumDecomposition()
- Specified by:
getMinCardForSumDecomposition
in interfaceSettings
- Returns:
- minimum number of cardinality threshold to a sum constraint to be decomposed
-
setMinCardinalityForSumDecomposition
public Settings setMinCardinalityForSumDecomposition(int defaultMinCardinalityForSumDecomposition)
Description copied from interface:Settings
Define the default minimum number of cardinality threshold to a sum/scalar constraint to be decomposed into intermediate sub-sums.- Specified by:
setMinCardinalityForSumDecomposition
in interfaceSettings
- Parameters:
defaultMinCardinalityForSumDecomposition
- cardinality threshold- Returns:
- the current instance
-
enableTableSubstitution
public boolean enableTableSubstitution()
- Specified by:
enableTableSubstitution
in interfaceSettings
- Returns:
- true if some intension constraints can be replaced by extension constraints
-
setEnableTableSubstitution
public DefaultSettings setEnableTableSubstitution(boolean enableTableSubstitution)
Description copied from interface:Settings
Define whether some intension constraints are replaced by extension constraints- Specified by:
setEnableTableSubstitution
in interfaceSettings
- Parameters:
enableTableSubstitution
- enable table substitution- Returns:
- the current instance
-
getMaxTupleSizeForSubstitution
public int getMaxTupleSizeForSubstitution()
- Specified by:
getMaxTupleSizeForSubstitution
in interfaceSettings
- Returns:
- maximum domain size threshold to replace intension constraints by extension constraints
-
getMCRDecimalPrecision
public double getMCRDecimalPrecision()
- Specified by:
getMCRDecimalPrecision
in interfaceSettings
- Returns:
- the smallest used double for
IIntConstraintFactory.multiCostRegular(IntVar[], IntVar[], ICostAutomaton)
algorithm
-
setMCRDecimalPrecision
public Settings setMCRDecimalPrecision(double precision)
Description copied from interface:Settings
Defines the default smallest used double forIIntConstraintFactory.multiCostRegular(IntVar[], IntVar[], ICostAutomaton)
algorithm- Specified by:
setMCRDecimalPrecision
in interfaceSettings
- Parameters:
precision
- default precision for MCR- Returns:
- the current instance
-
setMaxTupleSizeForSubstitution
public DefaultSettings setMaxTupleSizeForSubstitution(int maxTupleSizeForSubstitution)
Description copied from interface:Settings
Define the maximum domain size threshold to replace intension constraints by extension constraints Only checked whenSettings.enableTableSubstitution()
returnstrue
- Specified by:
setMaxTupleSizeForSubstitution
in interfaceSettings
- Parameters:
maxTupleSizeForSubstitution
- threshold to substitute intension constraint by table one.- Returns:
- the current instance
-
sortPropagatorActivationWRTPriority
public boolean sortPropagatorActivationWRTPriority()
- Specified by:
sortPropagatorActivationWRTPriority
in interfaceSettings
- Returns:
true
if propagators are sorted wrt their priority on initial activation.
-
setSortPropagatorActivationWRTPriority
public DefaultSettings setSortPropagatorActivationWRTPriority(boolean sortPropagatorActivationWRTPriority)
Description copied from interface:Settings
Set whether propagators are sorted wrt their priority inPropagationEngine
when dealing with propagator activation.- Specified by:
setSortPropagatorActivationWRTPriority
in interfaceSettings
- Parameters:
sortPropagatorActivationWRTPriority
-true
to allow sorting static propagators.- Returns:
- the current instance
-
makeDefaultSearch
public AbstractStrategy makeDefaultSearch(Model model)
Description copied from interface:Settings
Creates a default search strategy for the input model- Specified by:
makeDefaultSearch
in interfaceSettings
- Parameters:
model
- a model requiring a default search strategy- Returns:
- a default search strategy for model
- See Also:
Search.defaultSearch(Model)
-
setDefaultSearch
public DefaultSettings setDefaultSearch(Function<Model,AbstractStrategy> defaultSearch)
Description copied from interface:Settings
Define a default search strategy for the input model- Specified by:
setDefaultSearch
in interfaceSettings
- Parameters:
defaultSearch
- what default search strategy should be- Returns:
- the current instance
-
getEnvironmentHistorySimulationCondition
public ICondition getEnvironmentHistorySimulationCondition()
- Specified by:
getEnvironmentHistorySimulationCondition
in interfaceSettings
- Returns:
- the condition to satisfy when rebuilding history of backtrackable objects is needed.
-
setEnvironmentHistorySimulationCondition
public DefaultSettings setEnvironmentHistorySimulationCondition(ICondition environmentHistorySimulationCondition)
Description copied from interface:Settings
Set the condition to satisfy when rebuilding history of backtrackable objects is needed. Building "fake" history is needed when a backtrackable object is created during the search, in order to restore a correct state upon backtrack. The default condition is "at least one env.worldPush() has been called since the creation of the bck object". The condition can be set toICondition.FALSE
if no backtrackable object is created during the search.- Specified by:
setEnvironmentHistorySimulationCondition
in interfaceSettings
- Parameters:
environmentHistorySimulationCondition
- the condition to satisfy when rebuilding history of backtrackable objects is needed.- Returns:
- the current instance
-
warnUser
public boolean warnUser()
-
setWarnUser
public DefaultSettings setWarnUser(boolean warnUser)
Description copied from interface:Settings
To be informed of warnings detected during modeling/solving- Specified by:
setWarnUser
in interfaceSettings
- Parameters:
warnUser
-true
to be print warnings on console- Returns:
- the current instance
-
enableDecompositionOfBooleanSum
public boolean enableDecompositionOfBooleanSum()
- Specified by:
enableDecompositionOfBooleanSum
in interfaceSettings
- Returns:
true
if boolean sum should be decomposed into an equality constraint and an arithmetic constraint,false
if a single constraint should be used instead.
-
setEnableDecompositionOfBooleanSum
public DefaultSettings setEnableDecompositionOfBooleanSum(boolean enableDecompositionOfBooleanSum)
Description copied from interface:Settings
Define if boolean sums should be decomposed into an equality constraint + arithmetic constraint- Specified by:
setEnableDecompositionOfBooleanSum
in interfaceSettings
- Parameters:
enableDecompositionOfBooleanSum
-true
to enable decomposition- Returns:
- the current instance
-
enableIncrementalityOnBoolSum
public boolean enableIncrementalityOnBoolSum(int nbvars)
- Specified by:
enableIncrementalityOnBoolSum
in interfaceSettings
- Parameters:
nbvars
- number of variables in the constraint- Returns:
true
if the incrementality is enabled on boolean sum, based on the number of variables involved.
-
setEnableIncrementalityOnBoolSum
public DefaultSettings setEnableIncrementalityOnBoolSum(IntPredicate enableIncrementalityOnBoolSum)
Description copied from interface:Settings
Define the predicate to choose incremental sum, based on number variables declared- Specified by:
setEnableIncrementalityOnBoolSum
in interfaceSettings
- Parameters:
enableIncrementalityOnBoolSum
- predicate to pick declare sum- Returns:
- the current instance
-
cloneVariableArrayInPropagator
public boolean cloneVariableArrayInPropagator()
- Specified by:
cloneVariableArrayInPropagator
in interfaceSettings
- Returns:
- true if all propagators should clone the input variable array instead of simply referencing it.
-
setCloneVariableArrayInPropagator
public DefaultSettings setCloneVariableArrayInPropagator(boolean cloneVariableArrayInPropagator)
Description copied from interface:Settings
If this setting is set to true (default value), a clone of the input variable array is made in any propagator constructors. This prevents, for instance, wrong behavior when permutations occurred on the input array (e.g., sorting variables). Setting this to false may limit the memory consumption during modelling.- Specified by:
setCloneVariableArrayInPropagator
in interfaceSettings
- Parameters:
cloneVariableArrayInPropagator
-true
to clone variables array on constructor- Returns:
- the current instance
-
enableACOnTernarySum
public boolean enableACOnTernarySum()
- Specified by:
enableACOnTernarySum
in interfaceSettings
- Returns:
- true if AC is enabled to filter ternary sums by default.
-
setEnableACOnTernarySum
public Settings setEnableACOnTernarySum(boolean enable)
Description copied from interface:Settings
If this is set to true then AC algorithm is used to filter ternary sum by default, otherwise, BC is used. Note AC brings more filtering when there are holes in variable domains but this comes at a cost.- Specified by:
setEnableACOnTernarySum
in interfaceSettings
- Parameters:
enable
-true
to enable AC by default- Returns:
- the current instance
-
defaultPrefix
public String defaultPrefix()
Description copied from interface:Settings
Define the prefix of internally created variables (through a call toIVariableFactory.generateName()
- Specified by:
defaultPrefix
in interfaceSettings
- Returns:
- the prefix of all internally created variables
-
setDefaultPrefix
public DefaultSettings setDefaultPrefix(String defaultPrefix)
Description copied from interface:Settings
Define prefix of internally created variables- Specified by:
setDefaultPrefix
in interfaceSettings
- Parameters:
defaultPrefix
- prefix of internally created variables' name- Returns:
- the current instance
-
enableSAT
public boolean enableSAT()
- Specified by:
enableSAT
in interfaceSettings
- Returns:
- true when an underlying SAT solver is used to manage clauses declared through
ISatFactory
, false when clauses are managed with CSP constraints only.
-
setEnableSAT
public DefaultSettings setEnableSAT(boolean enableSAT)
Description copied from interface:Settings
Indicate if clauses are managed by a unique SAT solver.- Specified by:
setEnableSAT
in interfaceSettings
- Parameters:
enableSAT
-true
to rely on SAT Solver to handle clauses- Returns:
- the current instance
-
swapOnPassivate
public boolean swapOnPassivate()
- Specified by:
swapOnPassivate
in interfaceSettings
- Returns:
- true if, on propagator passivation, the propagator is swapped from active to passive in its variables' propagators list. false if, on propagator passivation, only the propagator's state is set to PASSIVE.
-
setSwapOnPassivate
public DefaultSettings setSwapOnPassivate(boolean swapOnPassivate)
Description copied from interface:Settings
Define if passivation of propagator swap it in variables' list- Specified by:
setSwapOnPassivate
in interfaceSettings
- Parameters:
swapOnPassivate
-true
to enable swapping- Returns:
- the current instance
-
checkDeclaredConstraints
public boolean checkDeclaredConstraints()
- Specified by:
checkDeclaredConstraints
in interfaceSettings
- Returns:
- true (default value) to check if all declared constraints are not free anymore, that is either posted or reified, before running the resolution. false to skip the control.
-
setCheckDeclaredConstraints
public DefaultSettings setCheckDeclaredConstraints(boolean checkDeclaredConstraints)
Description copied from interface:Settings
Indicate if the declared constraints are either posted or reified.- Specified by:
setCheckDeclaredConstraints
in interfaceSettings
- Parameters:
checkDeclaredConstraints
-true
to check constraints before resolution- Returns:
- the current instance
-
printAllUndeclaredConstraints
public boolean printAllUndeclaredConstraints()
- Specified by:
printAllUndeclaredConstraints
in interfaceSettings
- Returns:
- true to list all undeclared constraint, false (default value) otherwise.
Only active when
Settings.checkDeclaredConstraints()
is on.
-
setPrintAllUndeclaredConstraints
public Settings setPrintAllUndeclaredConstraints(boolean printAllUndeclaredConstraints)
Description copied from interface:Settings
Indicate if all undeclared constraints are listed on console whenSettings.checkDeclaredConstraints()
is on.- Specified by:
setPrintAllUndeclaredConstraints
in interfaceSettings
- Parameters:
printAllUndeclaredConstraints
-true
to list all undeclared constraints- Returns:
- the current instance
-
initSolver
public Solver initSolver(Model model)
Description copied from interface:Settings
This method is called inModel(IEnvironment, String, Settings)
to create the solver to associate with a model.- Specified by:
initSolver
in interfaceSettings
- Parameters:
model
- a model to initialize with a solver- Returns:
- the new solver
-
setInitSolver
public DefaultSettings setInitSolver(Function<Model,Solver> initSolver)
Description copied from interface:Settings
Define the solver initialization- Specified by:
setInitSolver
in interfaceSettings
- Parameters:
initSolver
- function to initialize the solver- Returns:
- the current instance
-
enableHybridizationOfPropagationEngine
public byte enableHybridizationOfPropagationEngine()
- Specified by:
enableHybridizationOfPropagationEngine
in interfaceSettings
- Returns:
- 0b00 if constraint-oriented propagation engine, 0b01 if hybridization between variable and constraint oriented and 0b10 if variable-oriented.
-
setHybridizationOfPropagationEngine
public Settings setHybridizationOfPropagationEngine(byte hybrid)
Description copied from interface:Settings
Define behavior of the propagation engine.- Specified by:
setHybridizationOfPropagationEngine
in interfaceSettings
- Parameters:
hybrid
- When set to '0b00', this works as a constraint-oriented propagation engine; when set to '0b01', this workds as an hybridization between variable and constraint oriented propagation engine. when set to '0b10', this workds as a variable- oriented propagation engine.- Returns:
- the current instance
-
getNbMaxLearntClauses
public int getNbMaxLearntClauses()
- Specified by:
getNbMaxLearntClauses
in interfaceSettings
- Returns:
- maximum number of learnt clauses to store. When reached, a reduction is applied.
- See Also:
Settings.setNbMaxLearntClauses(int)
,Settings.setRatioForClauseStoreReduction(float)
,Settings.getRatioForClauseStoreReduction()
,Settings.setMaxLearntClauseCardinality(int)
,Settings.getMaxLearntClauseCardinality()
-
setNbMaxLearntClauses
public Settings setNbMaxLearntClauses(int n)
Description copied from interface:Settings
Set the maximum of number of learnt clauses to store before running a reduction of the store.- Specified by:
setNbMaxLearntClauses
in interfaceSettings
- Parameters:
n
- maximum number of learnt clauses before reducing the store.- Returns:
- the current instance
- See Also:
Settings.getNbMaxLearntClauses()
,Settings.setRatioForClauseStoreReduction(float)
,Settings.getRatioForClauseStoreReduction()
,Settings.setMaxLearntClauseCardinality(int)
,Settings.getMaxLearntClauseCardinality()
-
getRatioForClauseStoreReduction
public float getRatioForClauseStoreReduction()
Description copied from interface:Settings
when clauses store need to be reduced, 'ratio' of them are kept (between 0.1 and .99)
-
setRatioForClauseStoreReduction
public Settings setRatioForClauseStoreReduction(float f)
Description copied from interface:Settings
when clauses store need to be reduced, 'ratio' of them are kept (between 0.1 and .99). A call to this defines 'ratio'.- Specified by:
setRatioForClauseStoreReduction
in interfaceSettings
- Parameters:
f
- ratio for clause store reduction- Returns:
- the current instance
- See Also:
Settings.getRatioForClauseStoreReduction()
,Settings.setNbMaxLearntClauses(int)
,Settings.getNbMaxLearntClauses()
,Settings.setMaxLearntClauseCardinality(int)
,Settings.getMaxLearntClauseCardinality()
-
getMaxLearntClauseCardinality
public int getMaxLearntClauseCardinality()
- Specified by:
getMaxLearntClauseCardinality
in interfaceSettings
- Returns:
- maximum learnt clause cardinality, clauses beyond this value are ignored.
- See Also:
Settings.setMaxLearntClauseCardinality(int)
,Settings.setNbMaxLearntClauses(int)
,Settings.setRatioForClauseStoreReduction(float)
,Settings.getRatioForClauseStoreReduction()
,Settings.setRatioForClauseStoreReduction(float)
-
setMaxLearntClauseCardinality
public Settings setMaxLearntClauseCardinality(int n)
Description copied from interface:Settings
Set the maximum learnt clause cardinality, clauses beyond this value are ignored.- Specified by:
setMaxLearntClauseCardinality
in interfaceSettings
- Parameters:
n
- maximum learnt clause cardinality.- Returns:
- the current instance
- See Also:
Settings.getMaxLearntClauseCardinality()
,Settings.getNbMaxLearntClauses()
,Settings.setRatioForClauseStoreReduction(float)
,Settings.getRatioForClauseStoreReduction()
,Settings.setRatioForClauseStoreReduction(float)
-
getLearntClausesDominancePerimeter
public int getLearntClausesDominancePerimeter()
Description copied from interface:Settings
When a clause is learnt from a conflict, it may happen that it dominates previously learnt ones. The dominance will be evaluated with the n last learnt clauses. n = 0 means no dominance check, n =Integer.MAX_VALUE
means checking all clauses with the last one.- Specified by:
getLearntClausesDominancePerimeter
in interfaceSettings
- Returns:
- dominance perimeter
-
setLearntClausesDominancePerimeter
public Settings setLearntClausesDominancePerimeter(int n)
Description copied from interface:Settings
When a clause is learnt from a conflict, it may happen that it dominates previously learnt ones. The dominance will be evaluated with the n last learnt clauses. n = 0 means no dominance check, n =Integer.MAX_VALUE
means checking all clauses with the last one.- Specified by:
setLearntClausesDominancePerimeter
in interfaceSettings
- Returns:
- dominance perimeter
-
explainGlobalFailureInSum
public boolean explainGlobalFailureInSum()
- Specified by:
explainGlobalFailureInSum
in interfaceSettings
- Returns:
- true if additional clauses can be learned from sum's global failure
-
explainGlobalFailureInSum
public Settings explainGlobalFailureInSum(boolean b)
Description copied from interface:Settings
Set to true to allow additional clauses to be learned from sum's global failure- Specified by:
explainGlobalFailureInSum
in interfaceSettings
-
-