{ "info": { "author": "J.S. Roy and S.A. Mitchell and G. Senarclens de Grancy", "author_email": "s.mitchell@auckland.ac.nz", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Mathematics" ], "description": "| # Copyright J.S. Roy (js@jeannot.org), 2003-2005\r\n| # Copyright Stuart A. Mitchell (stu@stuartmitchell.com)\r\n| # Copyright Gerald Senarclens de Grancy (oss@senarclens.eu)\r\n| # See the LICENSE file for copyright information.\r\n\r\nNote: this fork will be removed once Stuart A. Mitchell finds the time to include the Python 3 compatibility in the original PuLP package.\r\n\r\nPuLP is an LP modeler written in python. PuLP can generate MPS or LP files\r\nand call GLPK[1], COIN CLP/CBC[2], CPLEX[3], and GUROBI[4] to solve linear\r\nproblems.\r\n\r\nSee the examples directory for examples.\r\n\r\nPuLP requires Python >= 2.5.\r\n\r\nThe examples require at least a solver in your PATH or a shared library file.\r\n\r\nDocumentation is found on https://www.coin-or.org/PuLP/.\r\nA comprehensive wiki can be found at https://www.coin-or.org/PuLP/\r\n\r\nUse LpVariable() to create new variables. To create a variable 0 <= x <= 3\r\n>>> x = LpVariable(\"x\", 0, 3)\r\n\r\nTo create a variable 0 <= y <= 1\r\n>>> y = LpVariable(\"y\", 0, 1)\r\n\r\nUse LpProblem() to create new problems. Create \"myProblem\"\r\n>>> prob = LpProblem(\"myProblem\", LpMinimize)\r\n\r\nCombine variables to create expressions and constraints and add them to the\r\nproblem. \r\n>>> prob += x + y <= 2\r\n\r\nIf you add an expression (not a constraint), it will\r\nbecome the objective.\r\n>>> prob += -4*x + y\r\n\r\nChoose a solver and solve the problem. ex:\r\n>>> status = prob.solve(GLPK(msg = 0))\r\n\r\nDisplay the status of the solution\r\n>>> LpStatus[status]\r\n'Optimal'\r\n\r\nYou can get the value of the variables using value(). ex:\r\n>>> value(x)\r\n2.0\r\n\r\nExported Classes:\r\n - LpProblem -- Container class for a Linear programming problem\r\n - LpVariable -- Variables that are added to constraints in the LP\r\n - LpConstraint -- A constraint of the general form \r\n a1x1+a2x2 ...anxn (<=, =, >=) b \r\n - LpConstraintVar -- Used to construct a column of the model in column-wise \r\n modelling\r\n\r\nExported Functions:\r\n - value() -- Finds the value of a variable or expression\r\n - lpSum() -- given a list of the form [a1*x1, a2x2, ..., anxn] will construct \r\n a linear expression to be used as a constraint or variable\r\n - lpDot() --given two lists of the form [a1, a2, ..., an] and \r\n [ x1, x2, ..., xn] will construct a linear epression to be used \r\n as a constraint or variable\r\n\r\nComments, bug reports, patches and suggestions are welcome.\r\npulp-or-discuss@googlegroups.com\r\n\r\nReferences:\r\n[1] http://www.gnu.org/software/glpk/glpk.html\r\n[2] http://www.coin-or.org/\r\n[3] http://www.cplex.com/\r\n[4] http://www.gurobi.com/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pulp-or.googlecode.com/", "keywords": "Optimization,Linear Programming,Operations Research", "license": "Copyright (c) 2002-2005, Jean-Sebastien Roy (js@jeannot.org)\r\nModifications Copyright (c) 2007- Stuart Anthony Mitchell (s.mitchell@auckland.ac.nz)\r\nCopyright (c) 2013- Gerald Senarclens de Grancy (oss@senarclens.eu)\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a\r\ncopy of this software and associated documentation files (the\r\n\"Software\"), to deal in the Software without restriction, including\r\nwithout limitation the rights to use, copy, modify, merge, publish,\r\ndistribute, sublicense, and/or sell copies of the Software, and to\r\npermit persons to whom the Software is furnished to do so, subject to\r\nthe following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included\r\nin all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\r\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\r\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\r\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\r\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "maintainer": "", "maintainer_email": "", "name": "PuLP-py3", "package_url": "https://pypi.org/project/PuLP-py3/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/PuLP-py3/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pulp-or.googlecode.com/" }, "release_url": "https://pypi.org/project/PuLP-py3/1.5.5/", "requires_dist": null, "requires_python": null, "summary": "Temporary fork of PuLP offering support for Python 3 while retaining compatibility with Python 2. PuLP is an LP modeler that can generate MPS or LPfiles and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear problems.", "version": "1.5.5" }, "last_serial": 905786, "releases": { "1.5.5": [ { "comment_text": "", "digests": { "md5": "b3b762f39157df31a1e544d29d184061", "sha256": "4725bda15bddc5bd369345c54612e7c07162ca6d849829925d72aee3a4509e63" }, "downloads": -1, "filename": "PuLP-py3-1.5.5.tar.gz", "has_sig": false, "md5_digest": "b3b762f39157df31a1e544d29d184061", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9048921, "upload_time": "2013-10-28T15:45:19", "url": "https://files.pythonhosted.org/packages/cb/c0/0cc1b25d26d0b660bfe8dfe93e34ffc5257c93fc2c31b6fd074444c6a68a/PuLP-py3-1.5.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b3b762f39157df31a1e544d29d184061", "sha256": "4725bda15bddc5bd369345c54612e7c07162ca6d849829925d72aee3a4509e63" }, "downloads": -1, "filename": "PuLP-py3-1.5.5.tar.gz", "has_sig": false, "md5_digest": "b3b762f39157df31a1e544d29d184061", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9048921, "upload_time": "2013-10-28T15:45:19", "url": "https://files.pythonhosted.org/packages/cb/c0/0cc1b25d26d0b660bfe8dfe93e34ffc5257c93fc2c31b6fd074444c6a68a/PuLP-py3-1.5.5.tar.gz" } ] }