About Install Documentation Problems Tree Forum Save your money
via IT outsourcing!

Ukrainian HI-TECH Initiative

Install

From OpenOpt

Jump to: navigation, search
Installation

1. If you have either problems with installation or bug reports you can use our Forum

2. Ensure you have

  • Python v. 2.5 or 2.6. As for 3.0 - NumPy can't work with that one yet.
  • Some Python distributions have no setuptools included, then you need install it by yourself (for Linux users using software channels is recommended, for example "[sudo] apt-get install python-setuptools" or "[sudo] yum install python-setuptools"
  • NumPy ver. >= 1.1.0 (as a rule, Linux systems already have Python installed, and "python-numpy" package is available in software channels, for example use "apt-get install python-numpy" or "aptitude install python-numpy" for Debian or *BUNTU Linux). Also, you can try to install it via [sudo] easy_install numpy
  • Linux users, using software update channels to get numpy, as well as OpenOpt-related software (like cvxopt, setuptools, matplotlib, scipy, with all required and optional dependencies) can yield a little bit obsolete version, but could greatly economy your time and efforts.
  • Windows and RHEL users may be interested in EPD ("Enthought Python Distribution") - it already includes numpy, scipy, matplotlib and much more.
  • Linux, Windows, Mac users may be interested in SAGE (license: GPL) - "viable free open source alternative to Magma, Maple, Mathematica, and Matlab" - it contains Python + numpy + scipy + cvxopt + much more (BTW, in SAGE 1/2 equals to 0.5, not CPython- or C-like zero).
  • Python(x,y) is new Eclipse-based scientific Python distribution for Windows and Linux, check the site, mb Mac version is already available.

3. Chose one of the following:

  • You can download latest (2009-Dec-15) stable releases: OpenOpt0.27, FuncDesigner 0.17, DerApproximator 0.17, OOSuite 0.27 (whole suite of these 3 packages), or from Python Package Index (PYPI) via easy_install (provided you already have python-setuptools installed, just type in command prompt "easy_install openopt", "easy_install FuncDesigner", "easy_install DerApproximator"; AFAIK most downloads of our software are performed in this way), but you should take into account
Known bugs for latest release (0.27)
Bug Is already fixed
in subversion repository
numpy.array operations with FuncDesigner oofuns/oovars Yes
If scipy is not installed then importing from openopt may be failed Yes
FuncDesigner sometimes yields the error "blocks must have rank 2" Yes
Sometimes ipopt wrapper fails on FD model with "blocks must have rank 2" Yes
  • You can download zip-files generated by Trac automatically from latest svn repository version:
  • You can use subversion (if you have svn client installed):
  • svn co svn://openopt.org/PythonPackages/OpenOpt OpenOpt
  • svn co svn://openopt.org/PythonPackages/DerApproximator DerApproximator
  • svn co svn://openopt.org/PythonPackages/FuncDesigner FuncDesigner
or whole suite at once:
  • svn co svn://openopt.org/PythonPackages OOSuite
  • For Mac OS you could use darwinports.com py25-openopt0.24, py26-openopt0.24, also you could use openopt ports from mac.softpedia.com and macports.org.
  • For Alt Linux there is rpm package for openopt here
  • There is installation file for Python(x,y), that one is made by developer of the distribution (Pierre Raybaut) and is hosted there.
  • SAGE users can install openopt as one of optional packages (spkg-file), for details see here.
  • A person who had provided OpenOpt package for Debian Linux repository has informed me he intends to replace obsolete OpenOpt version to latest soon.

4. Run installation:

  • Linux:
    • [sudo] python setup.py install ; or
    • [sudo] python setup.py develop
  • Windows: you should run setup.py and choose "install" option in menu.
  • You could also run setup.py from a filemanager (or python setup.py from terminal) and then chose option 2 (install) and (optional) change installation path to another (however, that one should be present in PYTHONPATH)

5. To ensure OpenOpt has been installed successfully you could go to directory "examples" and run "python glp_1.py" or "python nlp_1.py"

Retrieved from "http://openopt.org/Install"
Personal tools
Latest OOSuite 0.27