Installing NLP.py¶
Optional dependencies¶
Sparse matrix storage¶
One of:
Only certain numerical methods and functionalities are available without sparse matrix support.
Derivatives computation¶
At least one of the following, depending on requirements:
Without one of the above dependencies, at least the first derivatives must be coded by hand. Second derivatives may be approximated used a quasi-Newton scheme.
Factorizations¶
One or more of the following, depending on requirements:
Only matrix-free methods are available without one of the above factorizations.
Installation¶
Clone this repo:
git clone https://github.com/PythonOptimizers/NLP.py
Optional: Install optional dependencies. macOS users.
Optional: if you would like ASL support, copy
site.template.cfg
tosite.cfg
and modifysite.cfg
to match your configuration:cp site.template.cfg site.cfg
Install:
python setup.py build python setup.py install [--prefix=...]