Class ClaferOption
java.lang.Object
org.clafer.compiler.ClaferOption
Defines the options for the Clafer compiler. Start with the default options
and configure it to your needs. For example,
ClaferOptions.Default.preferSmallerInstances() will prefer smaller
instances and use default settings for all the other option.- Author:
- jimmy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ClaferOptionstatic final ClaferOptionstatic final ClaferOptionUse the default options. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleansetBranchingPriority(Set<AstClafer>... branchingPriority) Specify priorities of Clafers for branching.setStrategy(ClaferSearchStrategy strategy) toString()
-
Field Details
-
Optimized
Use the default options. -
Basic
-
Default
-
-
Method Details
-
getStrategy
-
setStrategy
-
isBasicSymmetryBreaking
-
isFullSymmetryBreaking
-
basicSymmetryBreaking
-
fullSymmetryBreaking
-
isBasicOptimizations
-
isFullOptimizations
-
basicOptimizations
-
fullOptimizations
-
getBranchingPriority
-
setBranchingPriority
Specify priorities of Clafers for branching. For example, consider the priorities [{a,b}, {c,d}, {e}]. This forces the branching heuristic to branch on either a or b. Once both a and b are assigned, then the branching heuristic will branch on either c or d. Once all a, b, c, and d are assigned then the branching heuristic will branch on e. Once all a, b, c, d, and e are assigned, then the branching heuristic will branch on the remaining Clafers. Assumes that the sets in this array are all pairwise disjoint.- Parameters:
branchingPriority-- Returns:
-
toString
-