PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: confidence

PuLP: A Linear Programming Toolkit for Python

Back to document page

PuLP: A Linear Programming Toolkit forPythonStuart Mitchell ,Stuart Mitchell Consulting,Michael O Sullivan,Iain DunningDepartment of Engineering Science, The University of Auckland, Auckland, New ZealandSeptember 5, 2011AbstractThis paper introduces the PuLP library, an open source package that allows math-ematical programs to be described in the Python computer Programming lan-guage. PuLP is a high-level modelling library that leverages the power of thePython language and allows the user to create programs using expressions thatare natural to the Python language, avoiding special syntax and keywords wher-ever IntroductionPuLP is a library for the Python scripting language that enables users to describemathematical programs. Python is a well-established and supported high levelprogramming language with an emphasis on rapid development, clarity of codeand syntax, and a simple object model. PuLP works entirely within the syntaxand natural idioms of the Python language by providing Python objects that rep-resent optimization problems and decision variables, and allowing constraints tobe expressed in a way that is very similar to the original mathematical expres-sion.

complicated definition of the indices. Here we use Python’s powerful “list com-prehensions” to dynamically create our list of indices, which is a one-to-one match with the indicies used in the formulation. In English, the sub-statement says “cre-ate an entry in the list of the form (i,j) for every combination of location and prod-uct”. 5

  Lists, Formulation

Download PuLP: A Linear Programming Toolkit for Python


Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Related search queries