公共类IloCPEngine
扩展java.lang.Object
该类的实例表示 CP Optimizer 的回溯搜索引擎。
您永远不需要创建该类的实例。 主 "IloCP对象将创建该类的实例,如果您需要定义IloCustomXXX类的子类,可以在自己的 CP Optimizer 扩展代码中使用这些实例。
| 修饰符和类型 | 类别和说明 |
|---|---|
static class |
IloCPEngine.IntInfoIloCPEngine"整数信息的符号名称。 |
| 修饰符和类型 | 方法和说明 |
|---|---|
int |
getDomainSize(IloNumVar var)This member function returns the size of the domain of variable
var as maintained in the invoking instance of . |
ilog.cp.cppimpl.IloCPEngine |
getImpl() |
int |
getInfo(IloCPEngine.IntInfo which)This method returns the value of the integer information
which in the invoked IloCPEngine instance. |
IloCP |
getMasterCP()This method returns the master
IloCP class which created the invoking IloCPEngine object. |
double |
getMax(IloNumVar var)This member function returns the maximum value of the variable
var in the invoking instance of . |
double |
getMin(IloNumVar var)This member function returns the minimum value of the variable
var in the invoking instance of . |
boolean |
isFixed(IloNumVar var)该成员函数指示 "
var的域是否具有由调用的 "实例维护的特定值。 |
boolean |
isInDomain(IloNumVar var,
int value)This member function indicates whether
value is contained in the current domain of var as maintained by the invoking instance. |
java.util.Iterator |
iterator(IloIntVar var)该成员函数返回一个迭代器,用于遍历由调用IloCPEngine 维护的 "
var域。 |
public ilogilog.cp.cppimpl.IloCPEngine getImpl()
公共IloCP getMasterCP()
This method returns the master IloCP class which created the invoking IloCPEngine object.
public double getMin(IloNumVarvar)
var in the invoking instance of IloCPEngine.public double getMax(IloNumVarvar)
var in the invoking instance of IloCPEngine.public boolean isInDomain(IloNumVarvar、 int value)
value is contained in the current domain of var as maintained by the invoking IloCPEngine instance. 如果 "var不是积分类型,则违反了断言。public int getDomainSize(IloNumVarvar)
var as maintained in the invoking instance of IloCPEngine. 如果 "var不是积分类型,则违反了断言。public boolean isFixed(IloNumVarvar)
var的域是否具有由调用的 "IloCPEngine实例维护的特定值。publicjava.util.IteratoriteratorIloIntVarvar)
var域。public int getInfo(IloCPEngine.IntInfowhich) 抛出IloException
This method returns the value of the integer information which in the invoked IloCPEngine instance. 这些信息是关于该本地工人的,而不是整个搜索过程的。
IloException