[英]LP-Relaxation in Gurobipy
I want to find an LP-relaxation solution to my problem by using Gurobi.py (a Python package for solving LP).我想通过使用 Gurobi.py(用于解决 LP 的 Python package)找到我的问题的 LP 松弛解决方案。 I could do it by rewriting.lp file by changing all Integrality constraints to continuous.我可以通过将所有完整性约束更改为连续来重写.lp 文件来做到这一点。 However, I do not want to write.lp file again.但是,我不想再次写入.lp 文件。
There are several ways to do this, depending on your needs.有几种方法可以做到这一点,具体取决于您的需要。 Here are my recommended methods:以下是我推荐的方法:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.