PYOMO中CBC求解器有哪些选择?

发布于 2025-02-13 23:13:31 字数 147 浏览 0 评论 0原文

两个问题:

1-找到可行解决方案时,CBC求解器是否有任何选择? 我知道有一个opt.options ['seconds'] = 100,但是当我指定较小的数字时,没有找到可行的一个

2-是否有CBC选项的列表?所以我可以阅读全部

谢谢

Two questions:

1- Is there any options for cbc solver to stop when a feasible solution is found?
I know there is a opt.options['seconds'] =100 but when I specify small numbers it does not find a feasible one

2- Is there any list for CBC options ? so I can read them all

Thanks

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱你是孤单的心事 2025-02-20 23:13:31

maxs选项设置为1。

要在第一个可行整数解决方案后终止CBC,请将 Optimizationsuite/Master/installer/files/doc/cbccommandline.pdf“ rel =” nofollow noreferrer“>命令行文档有关CBC选项的部分列表。 cbc faq or.github.io/cbc/“ rel =“ nofollow noreferrer”> CBC用户指南通过从命令提示符以交互式模式运行CBC,将冗长设置为15级,并运行“ ”命令:

./bin/cbc
verbose 15
?

To terminate CBC after the first feasible integer solution, set the maxs option to 1.

See the CBC command line documentation for a partial list of CBC options. The CBC FAQ in the CBC Users Guide has instructions for getting a list of all options (including undocumented options) by running CBC in interactive mode from a command prompt, setting the verbosity to level 15, and running the "?" command:

./bin/cbc
verbose 15
?
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文