Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在学习在 python 中使用 lpsolve 来解决线性规划,我关注了网站,它运行良好。但是我找不到在 LP 问题中设置 max/min 属性的位置,它已经折磨了我好几天。
快速浏览一下,在我看来你需要使用set_maximand set_minim,就像在这里一样。从python代码它将是:
set_maxim
set_minim
lpsolve('set_maxim', lp)
或者
lpsolve('set_minim', lp)