Example: stock market
PuLP: A Linear Programming Toolkit for Python

PuLP: A Linear Programming Toolkit for Python

Back to document page

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:

Other abuse

Advertisement

Related search queries