docplex 模块中的相对 MIP 间隙容差
我使用 Python 中的 docplex 模块求解多目标 MIP。由于问题相当大,我想设置一个相对的 MIP 间隙容差:parameters.mip.tolerances.mipgap (https://www.ibm.com/docs/en/icos/12.9.0?topic=parameters-relative-mip-gap-tolerance)。
在解决详细信息的文档中(https://ibmdecisionoptimization。 github.io/docplex-doc/mp/docplex.mp.sdetails.html)它说属性 mip_relative_gap “...返回1e+20 对于多目标 MIP 问题。”我可以确认这一点。
现在,我想知道如果我设置此参数(例如parameters.mip.tolerances.mipgap=0.2),CPLEX 会做什么。难道只是解决细节中没有显示正确的差距吗?我得到的解决方案是有间隙的解决方案吗(如果不是,我得到什么解决方案?)?有什么方法可以得到多目标问题中的 MIP 差距吗?
I solve a multiobjective MIP with the docplex module in Python. As the problem is rather large, I would like to set a relative MIP gap tolerance: parameters.mip.tolerances.mipgap (https://www.ibm.com/docs/en/icos/12.9.0?topic=parameters-relative-mip-gap-tolerance).
In the docs for the solve details (https://ibmdecisionoptimization.github.io/docplex-doc/mp/docplex.mp.sdetails.html) it says that the property mip_relative_gap "...returns 1e+20 for multi-objective MIP problems." I can confirm this.
Now, I'm wondering what CPLEX does if I set this parameter anyway, say parameters.mip.tolerances.mipgap=0.2. Is it just that the correct gap is not shown in the solve details? Is the solution I get the one with the gap (if not, what solution do I get?)? Is there any way to get the MIP gap in a multiobjetive problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在多目标中设置每个目标的MIPGAP。
在
href =
”
you can set mipgap per objective in the multiobjective.
In Easy optimization with python in the multi objective example
you will notice
to set several mipgaps