public class IndomainList<T extends IntVar> extends Object implements Indomain<T>
Constructor and Description |
---|
IndomainList(int[] order,
Indomain<T> defIndomain)
It creates an IndomainList heuristic for choosing the values.
|
Modifier and Type | Method and Description |
---|---|
int |
indomain(T var)
It returns value within a variable which should be used in current
assignment.
|
public IndomainList(int[] order, Indomain<T> defIndomain)
order
- the order of values used to decide which values goes first.defIndomain
- the default indomain used if some values are not specified by the order array.public int indomain(T var) throws RuntimeException
Indomain
indomain
in interface Indomain<T extends IntVar>
var
- defines variable for which value for assignment is suggested.RuntimeException
Copyright © 2022. All rights reserved.