linear programming in python?

前端 未结 7 1205

I need to make a linear programming model. Here are the inequalities I\'m using (for example):

6x + 4y <= 24
x + 2y <= 6
-x + y <= 1
y <= 2
         


        
7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-12 18:01

    For solving the linear programming problem, you can use the scipy.optimize.linprog module in SciPy, which uses the Simplex algorithm.

提交回复
热议问题