Install
From OpenOpt
1. If you have problems with installation of our software or related solvers (e.g. it's not that easy to install ipopt or ALGENCAN in non-Linux OS) you can easily write, edit and run your code on-line via our Sage server.
Pay attention: To use FuncDesigner with OpenOpt you should have their versions of exactly same date (stable releases or svn snapshots).
2. We recommend you to consider using the following Python IDEs: Eric, Spyder, Eclipse, NetBeans; for some others see here.
3. Ensure you have
- Python v. 2.5 or 2.6 (latter is required to handle FuncDesigner problems with user-selected fixed/unfixed variables). As for 3.x series - NumPy can't work with that one yet. Most Linux distributives already have Python installed.
- 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 ("python-numpy" package is available in Linux software channels, for example use "apt-get 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.
4. Chose one of the following:
- You can download latest (2009-Dec-15) stable releases: OpenOpt0.29, FuncDesigner 0.19, DerApproximator 0.19, OOSuite 0.29 (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
| Bug | Is already fixed in subversion repository |
|---|---|
| some rarely encountered bugs for ipopt, ralg, maybe other nonlinear solvers | Yes |
| can't solve sparse SLE with latest scipy - wrapper to UMFPACK has been moved from scipy.sparse to scikits.umfpack | Not yet (I have some thoubles with scikits.sparse installation on my system). You could use rendering instead and cast to dense format or use another sparse solver, e.g. pcg, gmres from scipy.sparse |
| A bug with incorrect shape that sometimes triggers from CVXOPT-connected solvers (e.g. cvxopt_lp, glpk) | Yes |
| Sometimes OpenOpt incorrectly renders FuncDesigner linear constraints (typo "vstack" instead of "hstack"). Maybe, sometimes it triggers with other automatic differentiation results for nonlinear constraints. | Yes |
- You can download zip-files generated by Trac automatically from latest svn repository version:
- whole suite (recommended)
- OpenOpt
- DerApproximator
- FuncDesigner
- You can use subversion (if you have svn client installed):
- svn co svn://openopt.org/PythonPackages OOSuite
- or separate packages at once:
- svn co svn://openopt.org/PythonPackages/OpenOpt OpenOpt
- svn co svn://openopt.org/PythonPackages/DerApproximator DerApproximator
- svn co svn://openopt.org/PythonPackages/FuncDesigner FuncDesigner
- For Debian Linux there is deb package for openopt here, this one is made by a developer from PyMPVA project.
- For Alt Linux there is rpm package for openopt here
- For Mac OS you could use darwinports.com py25-openopt0.25, py26-openopt0.25, also you could use openopt ports from mac.softpedia.com and macports.org.
- 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.
5. 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)
- Linux:
6. To ensure OpenOpt has been installed successfully you could go to directory "examples" and run "python glp_1.py" or "python nlp_1.py"
7. Found our soft useful? Please read our Appeal.


