public final class IntDomainImpact extends Object implements IntValueSelector
Constructor and Description |
---|
IntDomainImpact()
Create a value selector for assignments that returns the best value
wrt to its impact on domains cardinality.
|
IntDomainImpact(int maxdom,
DecisionOperator<IntVar> dop,
boolean smallest)
Create a value selector that returns the best value wrt to its impact on domains cardinality.
|
Modifier and Type | Method and Description |
---|---|
int |
selectValue(IntVar var)
Selects and returns the value to constrained chosen variable with.
|
public IntDomainImpact(int maxdom, DecisionOperator<IntVar> dop, boolean smallest)
maxdom
, only bounds are considered.maxdom
- a maximum domain size to satisfy to use this value selector.dop
- the decision operator used to make the decisionsmallest
- set to true to select the value with the smallest impact,
set to false to select the value with the greatest impactpublic IntDomainImpact()
public int selectValue(IntVar var)
variable
.selectValue
in interface IntValueSelector
Copyright © 2018. All rights reserved.