python 中的 doopl 参数设置

doopl parameter setting in python

我正在 python 玩 doopl。

我想用

设置最小间隙公差

opl.cplex_stats.MiPRelativeGap()=5

这是行不通的。

如果可以的话,我想做运行-时间限制。

但是我找不到有参数设置的资源

我相信这是不允许的。我说的对吗?

您可以在 opl 模型中这样做

https://github.com/AlexFleischerParis/zooopl/blob/master/zoosetting1.mod

并使用 cplex.epgap = 0.05;