===================================================
DFO-LS: Derivative-Free Optimizer for Least-Squares
===================================================
.. image:: https://github.com/numericalalgorithmsgroup/dfols/actions/workflows/python_testing.yml/badge.svg
:target: https://github.com/numericalalgorithmsgroup/dfols/actions
:alt: Build Status
.. image:: https://img.shields.io/badge/License-GPL%20v3-blue.svg
:target: https://www.gnu.org/licenses/gpl-3.0
:alt: GNU GPL v3 License
.. image:: https://img.shields.io/pypi/v/DFO-LS.svg
:target: https://pypi.python.org/pypi/DFO-LS
:alt: Latest PyPI version
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.2630426.svg
:target: https://doi.org/10.5281/zenodo.2630426
:alt: DOI:10.5281/zenodo.2630426
.. image:: https://static.pepy.tech/personalized-badge/dfo-ls?period=total&units=international_system&left_color=black&right_color=green&left_text=Downloads
:target: https://pepy.tech/project/dfo-ls
:alt: Total downloads
DFO-LS is a flexible package for solving nonlinear least-squares minimization, without requiring derivatives of the objective. It is particularly useful when evaluations of the objective function are expensive and/or noisy. DFO-LS is more flexible version of `DFO-GN <https://github.com/numericalalgorithmsgroup/dfogn>`_.
The main algorithm is described in our paper [1] below.
If you are interested in solving general optimization problems (without a least-squares structure), you may wish to try `Py-BOBYQA <https://github.com/numericalalgorithmsgroup/pybobyqa>`_, which has many of the same features as DFO-LS.
Documentation
-------------
See manual.pdf or `here <https://numericalalgorithmsgroup.github.io/dfols/>`_.
Citation
--------
The development of DFO-LS is outlined over several publications:
1. C Cartis, J Fiala, B Marteau and L Roberts, `Improving the Flexibility and Robustness of Model-Based Derivative-Free Optimization Solvers <https://doi.org/10.1145/3338517>`_, *ACM Transactions on Mathematical Software*, 45:3 (2019), pp. 32:1-32:41 [`preprint arXiv 1804.00154 <https://arxiv.org/abs/1804.00154>`_] .
2. M Hough and L Roberts, `Model-Based Derivative-Free Methods for Convex-Constrained Optimization <https://doi.org/10.1137/21M1460971>`_, *SIAM Journal on Optimization*, 21:4 (2022), pp. 2552-2579 [`preprint arXiv 2111.05443 <https://arxiv.org/abs/2111.05443>`_].
3. Y Liu, K H Lam and L Roberts, `Black-box Optimization Algorithms for Regularized Least-squares Problems <http://arxiv.org/abs/2407.14915>`_, *arXiv preprint arXiv:arXiv:2407.14915*, 2024.
If you use DFO-LS in a paper, please cite [1].
If your problem has constraints, including bound constraints, please cite [1,2].
If your problem includes a regularizer, please cite [1,3].
Requirements
------------
DFO-LS requires the following software to be installed:
* Python 3.9 or higher (http://www.python.org/)
Additionally, the following python packages should be installed (these will be installed automatically if using *pip*, see `Installation using pip`_):
* NumPy (http://www.numpy.org/)
* SciPy version 1.11 or higher (http://www.scipy.org/)
* Pandas (http://pandas.pydata.org/)
**Optional package:** DFO-LS versions 1.2 and higher also support the `trustregion <https://github.com/lindonroberts/trust-region>`_ package for fast trust-region subproblem solutions. To install this, make sure you have a Fortran compiler (e.g. `gfortran <https://gcc.gnu.org/wiki/GFortran>`_) and NumPy installed, then run :code:`pip install trustregion`. You do not have to have trustregion installed for DFO-LS to work, and it is not installed by default.
Installation using conda
------------------------
DFO-LS can be directly installed in Anaconda environments using `conda-forge <https://anaconda.org/conda-forge/dfo-ls>`_:
.. code-block:: bash
$ conda install -c conda-forge dfo-ls
Installation using pip
----------------------
For easy installation, use `pip <http://www.pip-installer.org/>`_ as root:
.. code-block:: bash
$ pip install DFO-LS
Note that if an older install of DFO-LS is present on your system you can use:
.. code-block:: bash
$ pip install --upgrade DFO-LS
to upgrade DFO-LS to the latest version.
Manual installation
-------------------
Alternatively, you can download the source code from `Github <https://github.com/numericalalgorithmsgroup/dfols>`_ and unpack as follows:
.. code-block:: bash
$ git clone https://github.com/numericalalgorithmsgroup/dfols
$ cd dfols
DFO-LS is written in pure Python and requires no compilation. It can be installed using:
.. code-block:: bash
$ pip install .
To upgrade DFO-LS to the latest version, navigate to the top-level directory (i.e. the one containing :code:`pyproject.toml`) and rerun the installation using :code:`pip`, as above:
.. code-block:: bash
$ git pull
$ pip install .
Testing
-------
If you installed DFO-LS manually, you can test your installation using the pytest package:
.. code-block:: bash
$ pip install pytest
$ python -m pytest --pyargs dfols
Alternatively, the HTML documentation provides some simple examples of how to run DFO-LS.
Examples
--------
Examples of how to run DFO-LS are given in the `documentation <https://numericalalgorithmsgroup.github.io/dfols/>`_, and the `examples <https://github.com/numericalalgorithmsgroup/dfols/tree/master/examples>`_ directory in Github.
Uninstallation
--------------
If DFO-LS was installed using *pip* you can uninstall as follows:
.. code-block:: bash
$ pip uninstall DFO-LS
If DFO-LS was installed manually you have to remove the installed files by hand (located in your python site-packages directory).
Bugs
----
Please report any bugs using `GitHub's issue tracker <https://github.com/numericalalgorithmsgroup/dfols/issues>`_.
License
-------
This algorithm is released under the GNU GPL license. Please `contact NAG <http://www.nag.com/content/worldwide-contact-information>`_ for alternative licensing.
Raw data
{
"_id": null,
"home_page": null,
"name": "DFO-LS",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "Lindon Roberts <lindon.roberts@sydney.edu.au>",
"keywords": "mathematics, optimization, least squares, derivative free optimization, nonlinear least squares",
"author": null,
"author_email": "Lindon Roberts <lindon.roberts@sydney.edu.au>",
"download_url": "https://files.pythonhosted.org/packages/d6/17/a8c345dce6691f4c385a91ad687f4c2ae1c26af1f9bdd8baddb93dc706ae/dfo_ls-1.5.3.tar.gz",
"platform": null,
"description": "===================================================\nDFO-LS: Derivative-Free Optimizer for Least-Squares\n===================================================\n\n.. image:: https://github.com/numericalalgorithmsgroup/dfols/actions/workflows/python_testing.yml/badge.svg\n :target: https://github.com/numericalalgorithmsgroup/dfols/actions\n :alt: Build Status\n\n.. image:: https://img.shields.io/badge/License-GPL%20v3-blue.svg\n :target: https://www.gnu.org/licenses/gpl-3.0\n :alt: GNU GPL v3 License\n\n.. image:: https://img.shields.io/pypi/v/DFO-LS.svg\n :target: https://pypi.python.org/pypi/DFO-LS\n :alt: Latest PyPI version\n\n.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.2630426.svg\n :target: https://doi.org/10.5281/zenodo.2630426\n :alt: DOI:10.5281/zenodo.2630426\n \n.. image:: https://static.pepy.tech/personalized-badge/dfo-ls?period=total&units=international_system&left_color=black&right_color=green&left_text=Downloads\n :target: https://pepy.tech/project/dfo-ls\n :alt: Total downloads\n\nDFO-LS is a flexible package for solving nonlinear least-squares minimization, without requiring derivatives of the objective. It is particularly useful when evaluations of the objective function are expensive and/or noisy. DFO-LS is more flexible version of `DFO-GN <https://github.com/numericalalgorithmsgroup/dfogn>`_.\n\nThe main algorithm is described in our paper [1] below. \n\nIf you are interested in solving general optimization problems (without a least-squares structure), you may wish to try `Py-BOBYQA <https://github.com/numericalalgorithmsgroup/pybobyqa>`_, which has many of the same features as DFO-LS.\n\nDocumentation\n-------------\nSee manual.pdf or `here <https://numericalalgorithmsgroup.github.io/dfols/>`_.\n\nCitation\n--------\nThe development of DFO-LS is outlined over several publications:\n\n1. C Cartis, J Fiala, B Marteau and L Roberts, `Improving the Flexibility and Robustness of Model-Based Derivative-Free Optimization Solvers <https://doi.org/10.1145/3338517>`_, *ACM Transactions on Mathematical Software*, 45:3 (2019), pp. 32:1-32:41 [`preprint arXiv 1804.00154 <https://arxiv.org/abs/1804.00154>`_] . \n2. M Hough and L Roberts, `Model-Based Derivative-Free Methods for Convex-Constrained Optimization <https://doi.org/10.1137/21M1460971>`_, *SIAM Journal on Optimization*, 21:4 (2022), pp. 2552-2579 [`preprint arXiv 2111.05443 <https://arxiv.org/abs/2111.05443>`_].\n3. Y Liu, K H Lam and L Roberts, `Black-box Optimization Algorithms for Regularized Least-squares Problems <http://arxiv.org/abs/2407.14915>`_, *arXiv preprint arXiv:arXiv:2407.14915*, 2024.\n\nIf you use DFO-LS in a paper, please cite [1]. \nIf your problem has constraints, including bound constraints, please cite [1,2].\nIf your problem includes a regularizer, please cite [1,3].\n\nRequirements\n------------\nDFO-LS requires the following software to be installed:\n\n* Python 3.9 or higher (http://www.python.org/)\n\nAdditionally, the following python packages should be installed (these will be installed automatically if using *pip*, see `Installation using pip`_):\n\n* NumPy (http://www.numpy.org/)\n* SciPy version 1.11 or higher (http://www.scipy.org/)\n* Pandas (http://pandas.pydata.org/)\n\n**Optional package:** DFO-LS versions 1.2 and higher also support the `trustregion <https://github.com/lindonroberts/trust-region>`_ package for fast trust-region subproblem solutions. To install this, make sure you have a Fortran compiler (e.g. `gfortran <https://gcc.gnu.org/wiki/GFortran>`_) and NumPy installed, then run :code:`pip install trustregion`. You do not have to have trustregion installed for DFO-LS to work, and it is not installed by default.\n\nInstallation using conda\n------------------------\nDFO-LS can be directly installed in Anaconda environments using `conda-forge <https://anaconda.org/conda-forge/dfo-ls>`_:\n\n.. code-block:: bash\n\n $ conda install -c conda-forge dfo-ls\n\nInstallation using pip\n----------------------\nFor easy installation, use `pip <http://www.pip-installer.org/>`_ as root:\n\n.. code-block:: bash\n\n $ pip install DFO-LS\n\nNote that if an older install of DFO-LS is present on your system you can use:\n\n.. code-block:: bash\n\n $ pip install --upgrade DFO-LS\n\nto upgrade DFO-LS to the latest version.\n\nManual installation\n-------------------\nAlternatively, you can download the source code from `Github <https://github.com/numericalalgorithmsgroup/dfols>`_ and unpack as follows:\n\n .. code-block:: bash\n\n $ git clone https://github.com/numericalalgorithmsgroup/dfols\n $ cd dfols\n\nDFO-LS is written in pure Python and requires no compilation. It can be installed using:\n\n .. code-block:: bash\n\n $ pip install .\n\nTo upgrade DFO-LS to the latest version, navigate to the top-level directory (i.e. the one containing :code:`pyproject.toml`) and rerun the installation using :code:`pip`, as above:\n\n .. code-block:: bash\n\n $ git pull\n $ pip install .\n\nTesting\n-------\nIf you installed DFO-LS manually, you can test your installation using the pytest package:\n\n .. code-block:: bash\n\n $ pip install pytest\n $ python -m pytest --pyargs dfols\n\nAlternatively, the HTML documentation provides some simple examples of how to run DFO-LS.\n\nExamples\n--------\nExamples of how to run DFO-LS are given in the `documentation <https://numericalalgorithmsgroup.github.io/dfols/>`_, and the `examples <https://github.com/numericalalgorithmsgroup/dfols/tree/master/examples>`_ directory in Github.\n\nUninstallation\n--------------\nIf DFO-LS was installed using *pip* you can uninstall as follows:\n\n .. code-block:: bash\n\n $ pip uninstall DFO-LS\n\nIf DFO-LS was installed manually you have to remove the installed files by hand (located in your python site-packages directory).\n\nBugs\n----\nPlease report any bugs using `GitHub's issue tracker <https://github.com/numericalalgorithmsgroup/dfols/issues>`_.\n\nLicense\n-------\nThis algorithm is released under the GNU GPL license. Please `contact NAG <http://www.nag.com/content/worldwide-contact-information>`_ for alternative licensing.\n",
"bugtrack_url": null,
"license": "GPL-3.0-or-later",
"summary": "A flexible derivative-free solver for (bound constrained) nonlinear least-squares minimization",
"version": "1.5.3",
"project_urls": {
"Bug Tracker": "https://github.com/numericalalgorithmsgroup/dfols/issues/",
"Documentation": "https://numericalalgorithmsgroup.github.io/dfols/",
"Download": "https://github.com/numericalalgorithmsgroup/dfols/releases/",
"Homepage": "https://github.com/numericalalgorithmsgroup/dfols",
"Source Code": "https://github.com/numericalalgorithmsgroup/dfols"
},
"split_keywords": [
"mathematics",
" optimization",
" least squares",
" derivative free optimization",
" nonlinear least squares"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "aeac8cdd24f3951b605b81df028cf71f27fb257d9c860c832b1038082cb2c81b",
"md5": "e2266e31126bae060f50f3f648bbd8ce",
"sha256": "0b86464041b1109e5552f9995f44afe7815c81fe348cd2df8017e46691430d97"
},
"downloads": -1,
"filename": "DFO_LS-1.5.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e2266e31126bae060f50f3f648bbd8ce",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 64652,
"upload_time": "2024-10-30T00:03:37",
"upload_time_iso_8601": "2024-10-30T00:03:37.204389Z",
"url": "https://files.pythonhosted.org/packages/ae/ac/8cdd24f3951b605b81df028cf71f27fb257d9c860c832b1038082cb2c81b/DFO_LS-1.5.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d617a8c345dce6691f4c385a91ad687f4c2ae1c26af1f9bdd8baddb93dc706ae",
"md5": "e3b5420e21d160c64ca0b6bfcedee717",
"sha256": "5b097e5e89a52f17d93209fcf8c73e38d091681f4940bbc615aa0b47ce687808"
},
"downloads": -1,
"filename": "dfo_ls-1.5.3.tar.gz",
"has_sig": false,
"md5_digest": "e3b5420e21d160c64ca0b6bfcedee717",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 60704,
"upload_time": "2024-10-30T00:03:39",
"upload_time_iso_8601": "2024-10-30T00:03:39.513368Z",
"url": "https://files.pythonhosted.org/packages/d6/17/a8c345dce6691f4c385a91ad687f4c2ae1c26af1f9bdd8baddb93dc706ae/dfo_ls-1.5.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-30 00:03:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "numericalalgorithmsgroup",
"github_project": "dfols",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "dfo-ls"
}