|
| 1 | +================================================================== |
| 2 | +DFO-LS: Derivative-Free Optimizer for Least-Squares |PyPI Version| |
| 3 | +================================================================== |
| 4 | +DFO-LS is a flexible package for solving nonlinear least-squares minimisation, without requiring derivatives of the objective. |
| 5 | + |
| 6 | +This is an implementation of the algorithm from our paper: C. Cartis, J. Fiala, B. Marteau and L. Roberts, Improving the Flexibility and Robustness of Model-Based Derivative-Free Optimization Solvers, technical report, University of Oxford, (2018). |
| 7 | + |
| 8 | +Documentation |
| 9 | +------------- |
| 10 | +See manual.pdf or `here <http://people.maths.ox.ac.uk/robertsl/dfols>`_. |
| 11 | + |
| 12 | +Requirements |
| 13 | +------------ |
| 14 | +DFO-LS requires the following software to be installed: |
| 15 | + |
| 16 | +* Python 2.7 or Python 3 (http://www.python.org/) |
| 17 | + |
| 18 | +Additionally, the following python packages should be installed (these will be installed automatically if using *pip*, see `Installation using pip`_): |
| 19 | + |
| 20 | +* NumPy 1.11 or higher (http://www.numpy.org/) |
| 21 | +* SciPy 0.18 or higher (http://www.scipy.org/) |
| 22 | +* Pandas 0.17 or higher (http://pandas.pydata.org/) |
| 23 | + |
| 24 | +Installation using pip |
| 25 | +---------------------- |
| 26 | +For easy installation, use *pip* (http://www.pip-installer.org/) as root:: |
| 27 | + |
| 28 | + $ [sudo] pip install dfols |
| 29 | + |
| 30 | +or alternatively *easy_install*:: |
| 31 | + |
| 32 | + $ [sudo] easy_install dfols |
| 33 | + |
| 34 | +If you do not have root privileges or you want to install DFO-LS for your private use, you can use:: |
| 35 | + |
| 36 | + $ pip install --user dfols |
| 37 | + |
| 38 | +which will install DFO-LS in your home directory. |
| 39 | + |
| 40 | +Note that if an older install of DFO-LS is present on your system you can use:: |
| 41 | + |
| 42 | + $ [sudo] pip install --upgrade dfols |
| 43 | + |
| 44 | +to upgrade DFO-LS to the latest version. |
| 45 | + |
| 46 | +Manual installation |
| 47 | +------------------- |
| 48 | +Alternatively, you can download the source code from `Github <https://github.com/numericalalgorithmsgroup/dfols>`_ and unpack as follows: |
| 49 | + |
| 50 | + .. code-block:: bash |
| 51 | +
|
| 52 | + $ git clone https://github.com/numericalalgorithmsgroup/dfols |
| 53 | + $ cd dfols |
| 54 | +
|
| 55 | +DFO-LS is written in pure Python and requires no compilation. It can be installed using: |
| 56 | + |
| 57 | + .. code-block:: bash |
| 58 | +
|
| 59 | + $ [sudo] pip install . |
| 60 | +
|
| 61 | +If you do not have root privileges or you want to install DFO-LS for your private use, you can use: |
| 62 | + |
| 63 | + .. code-block:: bash |
| 64 | +
|
| 65 | + $ pip install --user . |
| 66 | +
|
| 67 | +instead. |
| 68 | + |
| 69 | +Testing |
| 70 | +------- |
| 71 | +If you installed DFO-LS manually, you can test your installation by running: |
| 72 | + |
| 73 | + .. code-block:: bash |
| 74 | +
|
| 75 | + $ python setup.py test |
| 76 | +
|
| 77 | +Alternatively, the HTML documentation provides some simple examples of how to run DFO-LS. |
| 78 | + |
| 79 | +Examples |
| 80 | +-------- |
| 81 | +Examples of how to run DFO-LS are given in the `documentation <http://people.maths.ox.ac.uk/robertsl/dfols>`_, and the `examples <https://github.com/numericalalgorithmsgroup/dfols/examples>`_ directory in Github. |
| 82 | + |
| 83 | +Uninstallation |
| 84 | +-------------- |
| 85 | +If DFO-LS was installed using *pip* you can uninstall as follows: |
| 86 | + |
| 87 | + .. code-block:: bash |
| 88 | +
|
| 89 | + $ [sudo] pip uninstall dfols |
| 90 | +
|
| 91 | +If DFO-LS was installed manually you have to remove the installed files by hand (located in your python site-packages directory). |
| 92 | + |
| 93 | +Bugs |
| 94 | +---- |
| 95 | +Please report any bugs using GitHub's issue tracker. |
| 96 | + |
| 97 | +License |
| 98 | +------- |
| 99 | +This algorithm is released under the GNU GPL license. |
| 100 | + |
| 101 | +.. |PyPI Version| image:: https://img.shields.io/pypi/v/DFOLS.svg |
| 102 | + :target: https://pypi.python.org/pypi/DFOLS |
0 commit comments