public abstract class IloCustomIntVarChooser extends java.lang.Object implements IloIntVarChooser
| Modifier | Constructor and Description |
|---|---|
protected |
IloCustomIntVarChooser(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 engine,
IloIntVar[] vars)
This abstract method must be defined to choose a variable
from the array
vars. |
void |
end() |
protected IloCustomIntVarChooser(IloCP cp) throws IloException
super(cp)IloExceptionpublic abstract int choose(IloCPEngine engine, IloIntVar[] vars)
vars. The integer value returned must be the index
of the chosen variable in the array vars. If no variable is selected
- for instance because every variable of vars is instantiated -
the value returned must be -1.public void end()
end in interface IloIntVarChooser