跳至主内容
框架 无框架

类IlcDemonI

定义文件: ilcp/cpext.h
包含文件: <ilcp/cpextilcp/cpext.h
IlcDemonI的地图IlcDemonIIlcConstraintIIlcDemonI
用于传播约束条件的实现类。

IlcDemonI的实例被称为恶魔。 恶魔在这些方面与目标不同:

更多信息,请参阅CP 优化器中的传播CP 优化器中的传播事件概念。

另请参阅:

方法概要
public IlcConstraintI *getConstraintI() const
public IlcCPEnginegetCPEngine() const
public IlcDemonI(IlcCPEngine solver, IlcConstraintI * owner=0)
public virtual IlcBoolisAConstraint() const
public virtual voidpropagate()
方法详细信息

IlcDemonI

公共 'IlcDemonI(IlcCPEngine'求解器, 'IlcConstraintI* '所有者=0)

该构造函数创建了一个 demon 实现。 由于这是一个抽象类,因此不应直接调用该构造函数。 子类的构造函数会调用该构造函数。 作为参数传递的约束条件是与此恶魔相关的约束条件。


getConstraintI

publicIlcConstraintI*getConstraintI() const

该成员函数返回一个指针,指向与调用恶魔相关的约束条件的实现,该约束条件已传递给恶魔的构造函数。


getCPEngine

publicIlcCPEngine getCPEngine() const

该成员函数返回调用 demon 实现的求解器(句柄)。


isAConstraint

public virtualIlcBool isAConstraint() const

这个虚拟成员函数在 "IlcConstraintI中被重载,返回 "IloTrue,否则返回 "IloFalse


传播

public virtual voidpropagate()

该成员函数传播调用恶魔。 通常,该虚拟成员函数的实现会调用相关约束的成员函数。