I am learning to use lpsolve in python to solve the linear programming, I followed the website, and it worked well. But I could not find where to set the max/min attribute in LP problem, it has tortured me for some days.
Asked
Active
Viewed 212 times
1 Answers
2
taking a quick look, it seem to me you need to use set_maxim
and set_minim
, as in here. from python code it would be:
lpsolve('set_maxim', lp)
or
lpsolve('set_minim', lp)

behzad.nouri
- 74,723
- 18
- 126
- 124
-
Thank you! that's what exactly I want. – Sunflower Dec 09 '13 at 02:11