[英]Limiting the soIving time using PySCIPOpt (SCIP ILP optimization for Python)
I am using PySCIPOpt which is a Python library for the SCIP ILP solver. 我正在使用PySCIPOpt,它是SCIP ILP求解器的Python库。 I would like to limit the optimization time. 我想限制优化时间。 I found in the SCIP documentation that this can be done using SCIPsetRealParam(scip, "limits/time", 600)
. 我在SCIP文档中发现可以使用SCIPsetRealParam(scip, "limits/time", 600)
来完成此操作。
But how can this be done from the PySCIPOpt Python interface? 但是如何从PySCIPOpt Python界面完成此操作?
Simple: 简单:
m = pyscipopt.Model()
m.setParam('limits/time', 600)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.