[英]What are the options for CBC solver in Pyomo?
Two questions:两个问题:
1- Is there any options for cbc solver to stop when a feasible solution is found? 1-当找到可行的解决方案时,cbc求解器是否有任何选项停止? I know there is a opt.options['seconds'] =100 but when I specify small numbers it does not find a feasible one
我知道有一个 opt.options['seconds'] =100 但是当我指定小数字时,它找不到一个可行的
2- Is there any list for CBC options ? 2- 是否有任何 CBC 选项列表? so I can read them all
所以我可以全部阅读
Thanks谢谢
To terminate CBC after the first feasible integer solution, set the maxs
option to 1.要在第一个可行整数解之后终止 CBC,请将
maxs
选项设置为 1。
See the CBC command line documentation for a partial list of CBC options.有关 CBC 选项的部分列表,请参阅 CBC 命令行文档。 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: CBC 用户指南中的CBC 常见问题解答提供了有关通过从命令提示符以交互模式运行 CBC、将详细程度设置为 15 级并运行“
?
”命令来获取所有选项列表(包括未记录的选项)的说明:
./bin/cbc
verbose 15
?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.