跳至主内容
框架 无框架

类IlcIntSelectI

定义文件: ilcp/cpext.h
包含文件: <ilcp/cpextilcp/cpext.h
IlcIntSelectI的地图IlcIntSelectIIlcIntSelectEvalIIlcIntSelectI
值选择器的实现类。

CP 优化器可让您控制在搜索解决方案过程中尝试受限变量域中各值的顺序。

This class is the implementation class for IlcIntSelect, the class of the object that chooses the value to try when the constrained variable under consideration is a constrained integer variable (that is, an instance of IlcIntVar).

IlcIntSelectI中的虚拟成员函数在受限整数变量的域中选择一个值。

要定义新的选择标准,可以定义 "IlcIntSelectI的子类。 如果这些标准可以用一个评估函数来表达,则可以使用预定义的子类 "IlcIntSelectEvalI来实现这一目的。

另请参阅:

方法概要
public IlcIntSelectI()
public virtual IlcIntselect(IlcIntVar var)
public ~IlcIntSelectI()
方法详细信息

IlcIntSelectI

公共IlcIntSelectI()

该构造函数创建一个执行对象。


~IlcIntSelectI

公共~IlcIntSelectI()

由于该类将被子类化,因此提供了一个虚拟析构函数。


选择

public virtualIlcInt selectIlcIntVar var)

该虚拟成员函数返回受约束整数变量 "var的域值之一。 类 "IlcIntSelectI的默认实现会返回域的最小值。