[英]How to specify which method you use in PuLP python?
I'm new to optimisation and python so sorry if answer to my question is obvious.我是优化和 python 的新手,如果我的问题的答案很明显,我很抱歉。
I wanted to use Revised Simplex Method in PuLP and i read in the documentation that there is an option to specify which method the solver uses but i could not find how to do it.我想在 PuLP 中使用修订的单纯形法,我在文档中读到有一个选项可以指定求解器使用哪种方法,但我找不到如何去做。
link to the documentation : https://pythonhosted.org/PuLP/main/optimisation_concepts.html文档链接: https : //pythonhosted.org/PuLP/main/optimisation_concepts.html
Using the solver COIN-CBC, you can do:使用求解器 COIN-CBC,您可以:
prob.solve(pulp.COIN_CMD(msg=1, options=['primalSimplex']))
or或者
prob.solve(pulp.COIN_CMD(msg=1, options=['dualSimplex']))
Notes:笔记:
options=['barrier']
.options=['barrier']
选择内点方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.