lbfgsb


Namelbfgsb JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/antoinecollet5/lbfgsb
SummaryA python impementation of the famous L-BFGS-B quasi-Newton solver.
upload_time2024-05-29 11:02:12
maintainerNone
docs_urlNone
authorattr: lbfgsb.__author__
requires_python<4,>=3.7
licenseMIT license
keywords limited bounded minimization gradient descent quasi-newton parameters estimation l-bfgs-b
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ======
LBFGSB
======

|License| |Stars| |Python| |PyPI| |Downloads| |Build Status| |Documentation Status| |Coverage| |Codacy| |Precommit: enabled| |Code style: black| |Ruff| |Mypy| |DOI|

A python impementation of the famous L-BFGS-B quasi-Newton solver [1].

This code is a python port of the famous implementation of Limited-memory
Broyden-Fletcher-Goldfarb-Shanno (L-BFGS), algorithm 778 written in Fortran [2,3]
(last update in 2011).
Note that this is not a wrapper like `minimize`` in scipy but a complete
reimplementation (pure python).
The original Fortran code can be found here: https://dl.acm.org/doi/10.1145/279232.279236

References
----------
[1] R. H. Byrd, P. Lu and J. Nocedal. A Limited Memory Algorithm for Bound
    Constrained Optimization, (1995), SIAM Journal on Scientific and
    Statistical Computing, 16, 5, pp. 1190-1208.
[2] C. Zhu, R. H. Byrd and J. Nocedal. L-BFGS-B: Algorithm 778: L-BFGS-B,
    FORTRAN routines for large scale bound constrained optimization (1997),
    ACM Transactions on Mathematical Software, 23, 4, pp. 550 - 560.
[3] J.L. Morales and J. Nocedal. L-BFGS-B: Remark on Algorithm 778: L-BFGS-B,
    FORTRAN routines for large scale bound constrained optimization (2011),
    ACM Transactions on Mathematical Software, 38, 1.

The aim of this reimplementation was threefold. First, familiarize ourselves with
the code, its logic and inner optimizations. Second, gain access to certain
parameters that are hard-coded in the Fortran code and cannot be modified (typically
wolfe conditions parameters for the line search). Third,
implement additional functionalities that require significant modification of
the code core.

* Free software: MIT license
* Documentation: https://lbfgsb.readthedocs.io.

.. |License| image:: https://img.shields.io/badge/License-MIT license-blue.svg
    :target: https://github.com/antoinecollet5/lbfgsb/-/blob/master/LICENSE

.. |Stars| image:: https://img.shields.io/github/stars/antoinecollet5/lbfgsb.svg?style=social&label=Star&maxAge=2592000
    :target: https://github.com/antoinecollet5/lbfgsb/stargazers
    :alt: Stars

.. |Python| image:: https://img.shields.io/pypi/pyversions/lbfgsb.svg
    :target: https://pypi.org/pypi/lbfgsb
    :alt: Python

.. |PyPI| image:: https://img.shields.io/pypi/v/lbfgsb.svg
    :target: https://pypi.org/pypi/lbfgsb
    :alt: PyPI

.. |Downloads| image:: https://static.pepy.tech/badge/lbfgsb
    :target: https://pepy.tech/project/lbfgsb
    :alt: Downoads

.. |Build Status| image:: https://github.com/antoinecollet5/lbfgsb/actions/workflows/main.yml/badge.svg
    :target: https://github.com/antoinecollet5/lbfgsb/actions/workflows/main.yml
    :alt: Build Status

.. |Documentation Status| image:: https://readthedocs.org/projects/lbfgsb/badge/?version=latest
    :target: https://lbfgsb.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

.. |Coverage| image:: https://codecov.io/gh/antoinecollet5/lbfgsb/branch/master/graph/badge.svg?token=ISE874MMOF
    :target: https://codecov.io/gh/antoinecollet5/lbfgsb
    :alt: Coverage

.. |Codacy| image:: https://app.codacy.com/project/badge/Grade/a3ad37554c5845e6a27e096e77dcca2f
    :target: https://app.codacy.com/gh/antoinecollet5/lbfgsb/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade
    :alt: codacy

.. |Precommit: enabled| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit
   :target: https://github.com/pre-commit/pre-commit

.. |Code style: black| image:: https://img.shields.io/badge/code%20style-black-000000.svg?style=flat
    :target: https://github.com/psf/black
    :alt: Black

.. |Ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Ruff

.. |Mypy| image:: https://www.mypy-lang.org/static/mypy_badge.svg
    :target: https://mypy-lang.org/
    :alt: Checked with mypy

.. |DOI| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11384588.svg
   :target: https://doi.org/10.5281/zenodo.11384588

==============
Changelog
==============

0.1.1 (2024-06-29)
------------------

* First release on PyPI.

MIT License

Copyright (c) 2024 Antoine COLLET

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/antoinecollet5/lbfgsb",
    "name": "lbfgsb",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4,>=3.7",
    "maintainer_email": null,
    "keywords": "Limited, Bounded, Minimization, Gradient descent, Quasi-Newton, Parameters estimation, L-BFGS-B",
    "author": "attr: lbfgsb.__author__",
    "author_email": "antoinecollet5@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c4/25/9ae0999e8e8afc820b8ee0793952a57dc9eded4aed8c31450c5a09a23ead/lbfgsb-0.1.1.tar.gz",
    "platform": null,
    "description": "======\nLBFGSB\n======\n\n|License| |Stars| |Python| |PyPI| |Downloads| |Build Status| |Documentation Status| |Coverage| |Codacy| |Precommit: enabled| |Code style: black| |Ruff| |Mypy| |DOI|\n\nA python impementation of the famous L-BFGS-B quasi-Newton solver [1].\n\nThis code is a python port of the famous implementation of Limited-memory\nBroyden-Fletcher-Goldfarb-Shanno (L-BFGS), algorithm 778 written in Fortran [2,3]\n(last update in 2011).\nNote that this is not a wrapper like `minimize`` in scipy but a complete\nreimplementation (pure python).\nThe original Fortran code can be found here: https://dl.acm.org/doi/10.1145/279232.279236\n\nReferences\n----------\n[1] R. H. Byrd, P. Lu and J. Nocedal. A Limited Memory Algorithm for Bound\n    Constrained Optimization, (1995), SIAM Journal on Scientific and\n    Statistical Computing, 16, 5, pp. 1190-1208.\n[2] C. Zhu, R. H. Byrd and J. Nocedal. L-BFGS-B: Algorithm 778: L-BFGS-B,\n    FORTRAN routines for large scale bound constrained optimization (1997),\n    ACM Transactions on Mathematical Software, 23, 4, pp. 550 - 560.\n[3] J.L. Morales and J. Nocedal. L-BFGS-B: Remark on Algorithm 778: L-BFGS-B,\n    FORTRAN routines for large scale bound constrained optimization (2011),\n    ACM Transactions on Mathematical Software, 38, 1.\n\nThe aim of this reimplementation was threefold. First, familiarize ourselves with\nthe code, its logic and inner optimizations. Second, gain access to certain\nparameters that are hard-coded in the Fortran code and cannot be modified (typically\nwolfe conditions parameters for the line search). Third,\nimplement additional functionalities that require significant modification of\nthe code core.\n\n* Free software: MIT license\n* Documentation: https://lbfgsb.readthedocs.io.\n\n.. |License| image:: https://img.shields.io/badge/License-MIT license-blue.svg\n    :target: https://github.com/antoinecollet5/lbfgsb/-/blob/master/LICENSE\n\n.. |Stars| image:: https://img.shields.io/github/stars/antoinecollet5/lbfgsb.svg?style=social&label=Star&maxAge=2592000\n    :target: https://github.com/antoinecollet5/lbfgsb/stargazers\n    :alt: Stars\n\n.. |Python| image:: https://img.shields.io/pypi/pyversions/lbfgsb.svg\n    :target: https://pypi.org/pypi/lbfgsb\n    :alt: Python\n\n.. |PyPI| image:: https://img.shields.io/pypi/v/lbfgsb.svg\n    :target: https://pypi.org/pypi/lbfgsb\n    :alt: PyPI\n\n.. |Downloads| image:: https://static.pepy.tech/badge/lbfgsb\n    :target: https://pepy.tech/project/lbfgsb\n    :alt: Downoads\n\n.. |Build Status| image:: https://github.com/antoinecollet5/lbfgsb/actions/workflows/main.yml/badge.svg\n    :target: https://github.com/antoinecollet5/lbfgsb/actions/workflows/main.yml\n    :alt: Build Status\n\n.. |Documentation Status| image:: https://readthedocs.org/projects/lbfgsb/badge/?version=latest\n    :target: https://lbfgsb.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n.. |Coverage| image:: https://codecov.io/gh/antoinecollet5/lbfgsb/branch/master/graph/badge.svg?token=ISE874MMOF\n    :target: https://codecov.io/gh/antoinecollet5/lbfgsb\n    :alt: Coverage\n\n.. |Codacy| image:: https://app.codacy.com/project/badge/Grade/a3ad37554c5845e6a27e096e77dcca2f\n    :target: https://app.codacy.com/gh/antoinecollet5/lbfgsb/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade\n    :alt: codacy\n\n.. |Precommit: enabled| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\n   :target: https://github.com/pre-commit/pre-commit\n\n.. |Code style: black| image:: https://img.shields.io/badge/code%20style-black-000000.svg?style=flat\n    :target: https://github.com/psf/black\n    :alt: Black\n\n.. |Ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n    :target: https://github.com/astral-sh/ruff\n    :alt: Ruff\n\n.. |Mypy| image:: https://www.mypy-lang.org/static/mypy_badge.svg\n    :target: https://mypy-lang.org/\n    :alt: Checked with mypy\n\n.. |DOI| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.11384588.svg\n   :target: https://doi.org/10.5281/zenodo.11384588\n\n==============\nChangelog\n==============\n\n0.1.1 (2024-06-29)\n------------------\n\n* First release on PyPI.\n\nMIT License\n\nCopyright (c) 2024 Antoine COLLET\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
    "bugtrack_url": null,
    "license": "MIT license",
    "summary": "A python impementation of the famous L-BFGS-B quasi-Newton solver.",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/antoinecollet5/lbfgsb"
    },
    "split_keywords": [
        "limited",
        " bounded",
        " minimization",
        " gradient descent",
        " quasi-newton",
        " parameters estimation",
        " l-bfgs-b"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9d9319673ab9bc47d45806a4746192a83278e80fff8828644dc6185bbbf8b051",
                "md5": "b1c5192e57dda9df7bde1c54c7b42509",
                "sha256": "efe0eae94d3463d19bb0226cb5bae2632da277e98fdacd0d32c1ddf9fded3b42"
            },
            "downloads": -1,
            "filename": "lbfgsb-0.1.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b1c5192e57dda9df7bde1c54c7b42509",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": "<4,>=3.7",
            "size": 38237,
            "upload_time": "2024-05-29T11:02:10",
            "upload_time_iso_8601": "2024-05-29T11:02:10.490192Z",
            "url": "https://files.pythonhosted.org/packages/9d/93/19673ab9bc47d45806a4746192a83278e80fff8828644dc6185bbbf8b051/lbfgsb-0.1.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c4259ae0999e8e8afc820b8ee0793952a57dc9eded4aed8c31450c5a09a23ead",
                "md5": "a93f5206f0437ff3e0f87870ab7cf947",
                "sha256": "82068946fef91670e099c6447edc2fd7087e2022e900218960c96c3a75ba07de"
            },
            "downloads": -1,
            "filename": "lbfgsb-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "a93f5206f0437ff3e0f87870ab7cf947",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.7",
            "size": 46739,
            "upload_time": "2024-05-29T11:02:12",
            "upload_time_iso_8601": "2024-05-29T11:02:12.309383Z",
            "url": "https://files.pythonhosted.org/packages/c4/25/9ae0999e8e8afc820b8ee0793952a57dc9eded4aed8c31450c5a09a23ead/lbfgsb-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-29 11:02:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "antoinecollet5",
    "github_project": "lbfgsb",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "lbfgsb"
}
        
Elapsed time: 0.66514s