Coin-OR——从 Cgl 中提取 Gomory 切割 (Coin-Or)

发布于 2024-08-17 06:34:24 字数 685 浏览 6 评论 0原文

我正在尝试从 Cgl (剪切生成库)中提取 Cgl Gomory 剪切 < a href="http://www.coin-or.org/" rel="nofollow noreferrer">Coin-Or 以下是我用来提取剪切的代码 -

OsiCuts cutlist;
CglGomory * gomory = new CglGomory();
gomory->setLimit(100);
gomory->generateCuts(*sym, cutlist) ;

其中 sym 是一个实例OsiSymSolverInterface(Symphony 的 OsiSolverInterface)。不幸的是,据我使用 gdb 确定,该代码在方法内部的某个地方的generateCuts 处出现了段错误。

CglProbing 剪切的提取同样会在 CglProbing 类的generateCuts 方法中再次出现段错误。

所有其他削减似乎都运作良好。

如果有人可以阐明这一点,甚至更好,使用这些剪辑或某种教程发布/链接到示例文件,那就太好了。如果有一个示例/教程可以从 SCIP 等其他解算器(而不是 Coin-OR)中提取切口,那也可以。

谢谢

I'm trying to extract Cgl Gomory cuts out of the Cgl (Cut Generation Library) of Coin-Or The following is the code I'm using to extract the cuts -

OsiCuts cutlist;
CglGomory * gomory = new CglGomory();
gomory->setLimit(100);
gomory->generateCuts(*sym, cutlist) ;

where sym is an instance of OsiSymSolverInterface (the OsiSolverInterface for Symphony). Unfortunately the code is segfaulting at generateCuts somewhere inside the method as far as I've been able to determine using gdb.

Extraction of CglProbing cuts is likewise segfaulting again inside the generateCuts method of the CglProbing class.

All other cuts seem to be working fine.

If someone could shed some light on this or even better, post/link to an example file using these cuts or a tutorial of some sort, that would great. If there's an example/tutorial for extracting cuts out of some other solver like SCIP instead of Coin-OR, that would work too.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文