Skip to content

Commit b12275c

Browse files
committed
Added convex constraint examples and documentation, removed 'sudo pip' from installation info, added ARC funding ackowledgement
1 parent 7173cab commit b12275c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1984
-1156
lines changed

README.rst

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -65,31 +65,17 @@ Additionally, the following python packages should be installed (these will be i
6565

6666
Installation using pip
6767
----------------------
68-
For easy installation, use `pip <http://www.pip-installer.org/>`_ as root:
68+
For easy installation, use `pip <http://www.pip-installer.org/>`_:
6969

7070
.. code-block:: bash
7171
72-
$ [sudo] pip install Py-BOBYQA
73-
74-
or alternatively *easy_install*:
75-
76-
.. code-block:: bash
77-
78-
$ [sudo] easy_install Py-BOBYQA
79-
80-
If you do not have root privileges or you want to install Py-BOBYQA for your private use, you can use:
81-
82-
.. code-block:: bash
83-
84-
$ pip install --user Py-BOBYQA
85-
86-
which will install Py-BOBYQA in your home directory.
72+
$ pip install Py-BOBYQA
8773
8874
Note that if an older install of Py-BOBYQA is present on your system you can use:
8975

9076
.. code-block:: bash
9177
92-
$ [sudo] pip install --upgrade Py-BOBYQA
78+
$ pip install --upgrade Py-BOBYQA
9379
9480
to upgrade Py-BOBYQA to the latest version.
9581

@@ -106,13 +92,7 @@ Py-BOBYQA is written in pure Python and requires no compilation. It can be insta
10692

10793
.. code-block:: bash
10894
109-
$ [sudo] pip install .
110-
111-
If you do not have root privileges or you want to install Py-BOBYQA for your private use, you can use:
112-
113-
.. code-block:: bash
114-
115-
$ pip install --user .
95+
$ pip install .
11696
11797
instead.
11898

@@ -121,7 +101,7 @@ To upgrade Py-BOBYQA to the latest version, navigate to the top-level directory
121101
.. code-block:: bash
122102
123103
$ git pull
124-
$ [sudo] pip install . # with admin privileges
104+
$ pip install .
125105
126106
Testing
127107
-------
@@ -144,7 +124,7 @@ If Py-BOBYQA was installed using *pip* you can uninstall as follows:
144124

145125
.. code-block:: bash
146126
147-
$ [sudo] pip uninstall Py-BOBYQA
127+
$ pip uninstall Py-BOBYQA
148128
149129
If Py-BOBYQA was installed manually you have to remove the installed files by hand (located in your python site-packages directory).
150130

docs/advanced.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ Logging and Output
2121

2222
Initialization of Points
2323
------------------------
24-
* :code:`init.random_initial_directions` - Build the initial interpolation set using random directions (as opposed to coordinate directions). Default is :code:`True`.
25-
* :code:`init.random_directions_make_orthogonal` - If building initial interpolation set with random directions, whether or not these should be orthogonalized. Default is :code:`True`.
26-
* :code:`init.run_in_parallel` - If using random directions, whether or not to ask for all :code:`objfun` to be evaluated at all points without any intermediate processing. Default is :code:`False`.
24+
* :code:`init.random_initial_directions` - Build the initial interpolation set using random directions (as opposed to coordinate directions). Default is :code:`True`. Not used if general convex constraints provided.
25+
* :code:`init.random_directions_make_orthogonal` - If building initial interpolation set with random directions, whether or not these should be orthogonalized. Default is :code:`True`. Not used if general convex constraints provided.
26+
* :code:`init.run_in_parallel` - If using random directions, whether or not to ask for all :code:`objfun` to be evaluated at all points without any intermediate processing. Default is :code:`False`. Not used if general convex constraints provided.
2727

2828
Trust Region Management
2929
-----------------------
@@ -74,6 +74,12 @@ Multiple Restarts
7474
* :code:`restarts.auto_detect.min_chg_model_slope` - Minimum rate of increase of :math:`\log(\|g_k-g_{k-1}\|)` and :math:`\log(\|H_k-H_{k-1}\|_F)` over the past iterations to cause a restart. Default is 0.015.
7575
* :code:`restarts.auto_detect.min_correl` - Minimum correlation of the data sets :math:`(k, \log(\|g_k-g_{k-1}\|))` and :math:`(k, \log(\|H_k-H_{k-1}\|_F))` required to cause a restart. Default is 0.1.
7676

77+
General Convex Constraints
78+
--------------------------
79+
* :code:`projections.dykstra.d_tol` - termination tolerance for Dykstra's algorithm for computing the projection onto the intersection of all convex constraints. Default is :math:`10^{-10}`.
80+
* :code:`projections.dykstra.max_iters` - maximum iterations of Dykstra's algorithm for computing the projection onto the intersection of all convex constraints. Default is 100.
81+
* :code:`projections.feasible_tol` - tolerance for checking feasibility of initial points with respect to general convex constraints. Default is :math:`10^{-10}`.
82+
* :code:`projections.pgd_tol` - termination tolerance for trust-region and geometry-improving subproblems. Default is :math:`10^{-8}`.
7783

7884
References
7985
----------

docs/build/doctrees/advanced.doctree

3.7 KB
Binary file not shown.
12 Bytes
Binary file not shown.
-275 KB
Binary file not shown.

docs/build/doctrees/history.doctree

693 Bytes
Binary file not shown.

docs/build/doctrees/index.doctree

2.1 KB
Binary file not shown.

docs/build/doctrees/info.doctree

202 Bytes
Binary file not shown.

docs/build/doctrees/install.doctree

-1.68 KB
Binary file not shown.

docs/build/doctrees/userguide.doctree

18.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)