【问题标题】:How to get the number of cuts and the actual cuts that have been added to SCIP using a conshdlr in C++如何在 C++ 中使用 conshdlr 获取已添加到 SCIP 的切割数量和实际切割
【发布时间】:2020-03-30 10:14:14
【问题描述】:

我的 scip 解决方案日志显示已添加的削减数量为 10,但是当我尝试使用 SCIPgetNCuts(scip) 我总是得到 0。

除此之外,有没有办法获取所有已添加到向量中的切口?

【问题讨论】:

    标签: linear-programming scip integer-programming


    【解决方案1】:

    所以,我能够弄清楚这一点。

    只需创建一个额外的数据结构(如 std::vector)来保存剪切(基本上是LProws,您可能需要创建一些补充数据结构来保存实际剪切信息(例如图形信息等)) .在定价者和约束处理程序之间传递此数据结构,并将新变量添加到现有约束和削减中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-08
      • 1970-01-01
      • 2014-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多