What's new? | Help | Directory | Sign in
Google
                
Show all Featured Downloads:
PuLP-1.21.03.zip
Feeds:

PuLP is an LP modeler written in python. PuLP can generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX and XPRESS to solve linear problems.

A comprehensive wiki can be found at http://130.216.209.237/engsci392/pulp/OptimisationWithPuLP

Use LpVariable() to create new variables. ex: x = LpVariable("x", 0, 3) to create a variable 0 <= x <= 3

Use LpProblem() to create new problems. ex: prob = LpProblem("myProblem", LpMinimize)

Combine variables to create expressions and constraints and add them to the problem. ex: prob += x + y <= 2 If you add an expression (not a constraint, f.e. prob += 4*z + w), it will become the objective.

Choose a solver and solve the problem. ex: prob.solve(GLPK())

You can get the value of the variables using value(). ex: value(x)

Exported Classes:

Exported Functions:









::...
免责声明:
当前网页内容, 由 大妈 ZoomQuiet 使用工具: ScrapBook :: Firefox Extension 人工从互联网中收集并分享;
内容版权归原作者所有;
本人对内容的有效性/合法性不承担任何强制性责任.
若有不妥, 欢迎评注提醒:

或是邮件反馈可也:
askdama[AT]googlegroups.com



自怼圈/年番新

DU21.7
关于 ~ DebugUself with DAMA ;-)


关注公众号, 持续获得相关各种嗯哼:
zoomquiet


粤ICP备18025058号-1
公安备案号: 44049002000656 ...::