Installation

Pylon is a package of Python modules. It needs to be on the PYTHON_PATH environment variable and for some core dependencies to be met for model and solver functionality. Optionally, easily installed additional libraries enable other features.

Dependencies

2.5 <= Python < 3.0

Traits 3.0 or later
Provides Python object attributes with additional characteristics.
CVXOPT 1.0 or later
CVXOPT is a free software package for convex optimization based on the Python programming language.
NumPy 1.2 or later
NumPy provides additional support for multi-dimentional arrays and matrices.

Windows

The Enthought Python Distribution provides the majority of the dependencies for Pylon and is free for academic use. CVXOPT is not included, but comes as a Windows Installer also.

Setuptools

With Python and setuptools installed, simply:

$ easy_install pylon

Virtualenv may be used to build a virtual Python environment:

$ virtualenv env
$ ./env/bin/easy_install pylon

Installation from source

Extract the gzipped tar file:

$ tar xvf pylon-X.X.tar.gz

Run the setup.py script:

$ cd pylon-X.X
$ python setup.py install

or:

$ python setup.py develop

Working directory

Change in to the source directory and run IPython:

$ cd ~/path/to/pylon-X.X
$ ipython

Access the pylon application programming inteface.

In [1]: from pylon.api import Generator, DCOPFRoutine