public abstract class IloCustomIntValueChooser extends java.lang.Object implements IloIntValueChooser
| Modifier | Constructor and Description |
|---|---|
protected |
IloCustomIntValueChooser(IloCP cp)
This constructor is to used in the constructor of your subclass as follows:
super(cp) |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
choose(IloCPEngine cp,
IloIntVar[] x,
int index)
This abstract method must be defined to choose a value for the variable
x[index]. |
void |
end() |
protected IloCustomIntValueChooser(IloCP cp) throws IloException
super(cp)IloExceptionpublic abstract int choose(IloCPEngine cp, IloIntVar[] x, int index)
x[index]. The variable
x[index] has been selected from the array x at an earlier stage. The selected value
must be returned by the method. The array x is given to such a method because some value selection
strategies may need the full array of variables to perform a selection.public void end()
end in interface IloIntValueChooser