linear programming in python?

前端 未结 7 1207

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:05

    I'd recommend the package cvxopt for solving convex optimization problems in Python. A short example with Python code for a linear program is in cvxopt's documentation here.

提交回复
热议问题