Cplex是用于创建和求解 LP(线性规划)、QP(目标函数中包含二次项的规划)、QCP(二次约束规划)和 MIP(混合整数规划)数学规划模型的软件。

Cplex..::..NodeCallback类型公开了以下成员。

构造函数

  名称 描述
protected 方法 Cplex..::..NodeCallback
初始化 "Cplex..::..NodeCallback类的新实例

方法

  名称 描述
protected 方法 abort
终止当前优化。
(继承自 "Cplex..::..回调
public 方法 克隆 (继承自 "Cplex..::..回调
protected 方法 createCppimpl (覆盖 "Cplex..::..MIPCallback..::..createCppimpl(Cplex)
public 方法 等于
确定指定对象是否等于当前对象
(从对象继承)
protected 方法 最终完成
允许对象在被垃圾回收站回收前尝试释放资源并执行其他清理操作。
(从对象继承)
protected 方法 GetBestObjValue
该方法会返回调用回调时活动问题的最优解值。
(继承自 "Cplex..::..MIPInfoCallback
protected 方法 GetBranchVar
返回为创建编号node 指定的节点而分支的变量。
protected 方法 GetCplexTime
该方法返回一个时间戳,用于测量以秒为单位的经过时间。 若要测量操作的起点和终点之间的时间,可在起点处使用此方法得出结果;在终点处使用此方法得出结果;用终点时间戳减去起点时间戳;减去的结果就是以秒为单位的已用时间。
(继承自 "Cplex..::..回调
public 方法 getCppImpl (继承自 "Cplex..::..回调
protected 方法 GetCutoff
在分支-切割搜索过程中求解节点时,返回目标值的截止值。
(继承自 "Cplex..::..MIPInfoCallback
protected 方法 GetDepth
返回节点在搜索树中的深度。
protected 方法 GetDetTime
该方法以 ticks 为单位返回一个确定的时间戳。 要测量操作起点和终点之间以 ticks 为单位的确定性时间,可使用起点的确定性时间戳;使用终点的确定性时间戳;用终点的确定性时间戳减去起点的确定性时间戳。 确定性时间戳的绝对值没有意义。
(继承自 "Cplex..::..回调
protected 方法 GetDirection (继承自 "Cplex..::..MIPInfoCallback
protected 方法 GetEndDetTime (继承自 "Cplex..::..回调
protected 方法 GetEndTime
该方法返回一个时间戳,指明时限发生的时间。 以秒为单位计算剩余时间,减去 "的结果
CopyC#
GetCplexTime
从该方法的结果中提取
。 根据参数 "设置的时钟类型,计算得出的结果是挂钟时间(也称为实时时间)或 CPU 时间
CopyC#
ClockType
。时间戳的绝对值没有意义。
(继承自 "Cplex..::..回调
protected 方法 getEnvImpl (继承自 "Cplex..::..回调
protected 方法 GetEstimatedObjValue
返回节点编号node 所指示节点的估计目标值。
public 方法 GetHashCode
充当特定类型的散列函数。
(从对象继承)
protected 方法 GetIncumbentObjValue
返回调用回调时当前最佳整数解的目标值。
(继承自 "Cplex..::..MIPInfoCallback
protected 方法 GetIncumbentValue(INumExpr) (继承自 "Cplex..::..MIPInfoCallback
protected 方法 GetIncumbentValue(INumVar) (继承自 "Cplex..::..MIPInfoCallback
protected 方法 GetIncumbentValues(array<INumVar>[]()[][]) (继承自 "Cplex..::..MIPInfoCallback
protected 方法 GetIncumbentValues(array<INumVar>[]()[][], 'Int32, 'Int32) (继承自 "Cplex..::..MIPInfoCallback
protected 方法 GetInfeasibilitySum
返回节点号节点所示节点的整数不可行性总和。
protected 方法 GetModel
返回调用回调时正在解算的模型,即活动模型。
(继承自 "Cplex..::..回调
protected 方法 GetNcols
返回调用回调时正在求解的活动模型的矩阵表示列数。
(继承自 "Cplex..::..回调
protected 方法 GetNinfeasibilities
返回节点号节点所示节点的整数不可行变量个数。
protected 方法 GetNiterations
返回当前优化过程中节点松弛求解的总迭代次数。
(继承自 "Cplex..::..MIPInfoCallback
protected 方法 GetNnodes
返回当前分支切割搜索中已处理的节点数。
(继承自 "Cplex..::..MIPInfoCallback
protected 方法 GetNodeData
返回编号为node 的节点上的用户对象。
protected 方法 GetNodeId
返回节点编号node 所指示节点的节点标识符。
protected 方法 GetNodeNumber
protected 方法 GetNQCs
返回调用回调时正在求解的活动模型中二次约束的数量。
(继承自 "Cplex..::..回调
protected 方法 GetNremainingNodes
返回尚待处理的节点数,或者,等价于树中的活动节点数。
(继承自 "Cplex..::..MIPInfoCallback
protected 方法 GetNrows
返回调用回调时正在求解的活动模型的矩阵表示行数。
(继承自 "Cplex..::..回调
protected 方法 GetObjCoef (继承自 "Cplex..::..MIPCallback
protected 方法 GetObjCoefs(array<INumVar>[]()[][]) (继承自 "Cplex..::..MIPCallback
protected 方法 GetObjCoefs(array<INumVar>[]()[][], 'Int32, 'Int32) (继承自 "Cplex..::..MIPCallback
protected 方法 GetObjValue
返回节点编号所指示节点的目标值。
protected 方法 GetPriority (继承自 "Cplex..::..MIPInfoCallback
protected 方法 GetStartDetTime (继承自 "Cplex..::..回调
protected 方法 GetStartTime
该方法返回一个时间戳,指明解算过程开始的时间。 以秒为单位计算经过时间,减去 "的结果
CopyC#
GetCplexTime
从该方法的结果中提取
。 根据参数 "设置的时钟类型,计算得出的结果是挂钟时间(也称为实时时间)或 CPU 时间
CopyC#
ClockType
。时间戳的绝对值没有意义。
(继承自 "Cplex..::..回调
public 方法 GetType
获取当前实例的“类型”。
(从对象继承)
protected 方法 GetUserThreads (继承自 "Cplex..::..MIPCallback
protected 方法 HasIncumbent
如果在调用回调时找到了现任解决方案,则返回true
(继承自 "Cplex..::..MIPInfoCallback
protected 方法 主要
用户回调类要实现的方法。
(继承自 "Cplex..::..回调
protected 方法 makeClone (继承自 "Cplex..::..回调
protected 方法 MemberwiseClone
创建当前 Object 的浅拷贝。
(从对象继承)
public 方法 removeCppimpl (继承自 "Cplex..::..回调
protected 方法 SelectNode
根据节点编号选择下一个要处理的节点。
public 方法 ToString (继承自 "Cplex..::..回调

字段

  名称 描述
受保护领域 _callbackIImpl (继承自 "Cplex..::..回调

另请参阅