Friday, March 5, 2010

Tutorial: Python, PuLP and GLPK

Today, I have given a tutorial of Python, PuLP and GLPK at Asian Institute of Technology.



A pdf version the presentation is downloadable. Three examples are also available.

Wednesday, March 3, 2010

A Brief Installation of Python, PuLP and GLPK into Windows Platform


  1. Install Python

  2. - Download Python.
    - Choose the version you like. In this case, Python 2.6.4 Windows installer is chosen. (Versions 2.x and 3.x are totally different.)
    - Double click the installation package. (A default directory is C:\Python26\.)
    - Add the Python path (A default directory is C:\Python26\.)

  3. Install PuLP

  4. - Follow the installation section in pulp1.4.7.pdf, from PuLP website.
    - Or, http://code.google.com/p/pulp-or/wiki/InstallingPulpatHome.
    - You may test the PuLP installation as described in the document.

  5. Install GLPK

  6. - Download GLPK.
    - Double click the installation package. (A default directory is C:\Program Files\GnuWin32.)
    - Add the GLPK path. (A default directory is C:\Program Files\GnuWin32\bin.)
    - You may check PuLP with GLPK with the command pulp.pulpTestAll().


Some useful materials:
- PuLP document (pulp1.4.7.pdf) from pulp-or project.
- Python documents including tutorial.