linear programming in python?

前端 未结 7 1198

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.

    0 讨论(0)
提交回复
热议问题