简体   繁体   English

用于混合整数编程(MIP)的PULP,CPLEX或GUROBI

[英]PULP , CPLEX or GUROBI for Mixed Integer Programming (MIP)

I am interested to develop a code who uses PulP. 我有兴趣开发使用PulP的代码。 I Have some questions and I Will be very gratful if you can help me. 我有一些问题,如果您能帮助我,我将非常感激。

• Does PulP have a restriction in the number of linear constraint or integer variables? •PulP在线性约束或整数变量的数量上是否有限制? • If I have a problem with many constraintes or integer variables, Have I to buy a solver like CPLEX or Gurobi •如果我遇到许多约束或整数变量的问题,是否需要购买CPLEX或Gurobi等求解器

I really thank you for your time. 非常感谢您的宝贵时间。

  1. I don't think there are artificial limits on the size of models you can generate with PuLP 我认为使用PuLP可以生成的模型大小没有人为限制

  2. For larger, more difficult problems, commercial solvers like Cplex or Gurobi typically are much faster and more reliable than open source solvers. 对于更大,更困难的问题,像Cplex或Gurobi这样的商业解决方案通常比开源解决方案更快,更可靠。 Of course you can use an open source solver like glpk or CBC for prototyping, even if the final model is large. 当然,即使最终模型很大,也可以使用glpk或CBC之类的开源求解器进行原型制作。 Note also that Cplex and Gurobi come with their own Python based modeling interfaces (these may offer access to the more esoteric aspects of the solvers). 还要注意,Cplex和Gurobi带有它们自己的基于Python的建模接口(它们可以提供对求解器更为神秘的方面的访问)。 One advantage of Pulp is that you can develop the model with an open source solver and then switch to a commercial solver without changing the model code. Pulp的一个优点是,您可以使用开源求解器来开发模型,然后切换到商用求解器而无需更改模型代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM