公共抽象类IloCustomIntValueChooser 扩展java.lang.Object 实现IloIntValueChooser
| 修饰符 | 构造函数和说明 |
|---|---|
protected |
IloCustomIntValueChooser(IloCP cp)该构造函数将在子类的构造函数中使用,如下所示:
super(cp) |
| 修饰符和类型 | 方法和说明 |
|---|---|
abstract int |
choose(IloCPEngine cp,
IloIntVar[] x,
int index)要为变量 "
x[index]选择一个值,必须定义这个抽象方法。 |
void |
end() |
protected IloCustomIntValueChooser(IloCPcp) 抛出IloException
super(cp)IloExceptionpublic abstract int chooseIloCPEnginecp、 IloIntVar[] x、 int index)
x[index]选择一个值,必须定义这个抽象方法。 变量 "x[index]是早先从数组 "x中选择的。 方法必须返回所选值。 之所以将数组 "x赋予这种方法,是因为某些值选择策略可能需要完整的变量数组来执行选择。public void end()
end在接口中IloIntValueChooser