Skip to main content

Python binding to the levmar library using Cython.

Project description

Build status PyPI version Python version License coverage

A Python binding to the levmar library. Note that this is a fork of https://github.com/tkanmae/levmar.

Description

The levmar is GPL’ed ANSI C implementation of the Levenberg-Marquardt (LM) optimization algorithm. The LM algorithm provides a numerical solution to the problem of minimizing a function over a parameter space of a function. The levmar library provides implementation of both unconstrained and constrained LM algorithms (box, linear equation, and linear inequality constraints).

Installation

Building Levmar requires the following software installed:

  • Python (>=2.7)

  • NumPy (>=1.7)

  • [optional] nose (>=0.11)

nose is required to execute tests.

In order to build levmar, simply do:

$ python setup.py build
$ python setup.py install

Then, verify a successful installation:

$ python -c "import levmar; levmar.test()"

If you downloaded Levmar from a GitHub repository, you need to have Cython (>=0.13) installed.

$ cython -v levmar/_levmar.pyx
$ python setup.py build
$ python setup.py install
$ python -c "import levmar; levmar.test()"

If you just want to try Levmar without installing it, build it in-place:

$ (cython -v levmar/_levmar.pyx)
$ python setup.py build_ext --inplace -f
[Set up PYTHONPATH appropriately]
$ python -c "import levmar; levmar.test()"

Documentation

See docstrings and demo scripts contained in the directory ./examples. Documentation of the levmar library can be found at http://www.ics.forth.gr/~lourakis/levmar/. Auto-generated API documentation for the latest stable release of this wrapper is found here: https://bjodah.github.io/chempy/latest (and the development version for the current master branch of this wrapper is found here: http://hera.physchem.kth.se/~chempy/branches/master/html).

Authors

Takeshi Kanmae <tkanmae@gmail.com>. For all authors see AUTHORS.

License

The MIT license applies to all the files except those in ./levmar-2.6. All of the software in ./levmar-2.6 and only the software therein is copyrighted by Manolis Lourakis and is licensed under the terms and conditions of the GNU General Public License (GPL). See the file LICENSE.txt.

Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

levmar-0.2.1.tar.gz (163.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page