{ "info": { "author": "Gerhard Br\u00e4unlich", "author_email": "g.braeunlich@disroot.org", "bugtrack_url": null, "classifiers": [], "description": "[](https://zenodo.org/badge/latestdoi/143015117)\n\n# IPyOpt\n\nIPyOpt is a python module that allows you to use\n[Ipopt](http://www.coin-or.org/Ipopt/) in Python.\nIt was developed by Eric Xu when he was a PhD student at [Washington\nUniversity](https://wustl.edu/) and issued under the BSD license.\nOriginal repository: [xuy/pyipopt](https://github.com/xuy/pyipopt).\n\n## Installation\n\n### Dependencies\n\nIPyOpt depends on the following packages:\n\n1. A compiler and a linker, e.g. gcc, ld\n2. [Ipopt](https://projects.coin-or.org/Ipopt)\n3. [Numpy](http://numpy.scipy.org/)\n4. Python.h (part of the python source code, you can download it from\n [Python.org](http://python.org))\n\n### Install\n\nFirst, get the latest source code using:\n\n```sh\n$ git clone http://github.com/g-braeunlich/IPyOpt.git\n```\n\nCheck whether a file `ipopt.pc` was distributed with your Ipopt installation.\nIf this is the case and `ipopt.pc` is in the search path of `pkg-config`\n(on unix systems:\n`/usr/lib/pkgconfig`, `/usr/share/pkgconfig`, `/usr/local/lib/pkgconfig`,\n`/usr/local/share/pkgconfig`), nothing has to be modified.\n\nIn this case run\n\n```sh\n$ python setup.py build\n$ sudo python setup.py install\n```\n\t\nIf `pkg-config` is not available for your system, you will need to\npass appropriate information to `setup.py` by setting the environment\nvariable `CFLAGS`. Example:\n```sh\n$ CFLAGS=\"-I/usr/include/coin/ -l/usr/lib64 -lipopt -lmumps_common -ldmumps -lzmumps -lsmumps -lcmumps -llapack -lblas -lblas -lblas -lm -ldl' ./setup.py build\n$ sudo python setup.py install\n```\n\t\nIf you have an `ipopt.pc` which is not in the `pkg-config` search path,\nspecify the path via the `PKG_CONFIG_PATH` environment variable (see below).\nIf you cannot find an `ipopt.pc` in your `ipopt` installation, there is an\nexample pc file in the directory `pkgconfig`.\nCopy it to a location (best of all directly in a subfolder named\n`pkgconfig` of your Ipopt installation) and edit it to reflect the\nlibrary and include paths of the dependencies.\n\nThen do\n\n```sh\n$ PKG_CONFIG_PATH=