V - VariableT - Valuepublic class GeneralVariableSelection<V extends Variable<V,T>,T extends Value<V,T>> extends Object implements VariableSelection<V,T>
MacPropagation is used and Variable.UnassignWhenNoGood parameter
is true, while there is a variable with an empty domain:
| Parameter | Type | Comment |
|---|---|---|
| Variable.RandomSelection | Boolean |
if true, an unassigned variable is picked randomly |
| Variable.UnassignWhenNoGood | Boolean |
if true and if MacPropagation is used: if there is a variable
with empty domain, assigned variable (which is present in some explanation
for a vairable with empty domain) is selected (for reassignment) |
| Variable.UnassignWhenNoGoodRandomWalk | Double |
if Variable.UnassignWhenNoGood is true and if MacPropagation is
used: if there is a variable with empty domain, with the given probability an
arbitrary assigned variable is selected |
VariableSelection,
Solver| Constructor and Description |
|---|
GeneralVariableSelection() |
GeneralVariableSelection(DataProperties properties)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(Solver<V,T> solver)
Initialization
|
V |
selectVariable(Solution<V,T> solution)
Variable selection
|
public GeneralVariableSelection(DataProperties properties)
properties - input configurationpublic GeneralVariableSelection()
public V selectVariable(Solution<V,T> solution)
selectVariable in interface VariableSelection<V extends Variable<V,T>,T extends Value<V,T>>solution - current solution