Skip to content

Commit 899c266

Browse files
committed
250908.020735.CST [skip ci] add comments about rho and delta to cobylb.py; the comments were included in the Fortran version on Jan. 31, 2022 but were missing from the Python translation
1 parent a82d043 commit 899c266

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pyprima/src/pyprima/cobyla/cobylb.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
Dedicated to late Professor M. J. D. Powell FRS (1936--2015).
77
88
Python translation by Nickolai Belakovski.
9+
10+
N.B. (Zaikun 20220131): Powell's implementation of COBYLA uses RHO rather than DELTA as the
11+
trust-region radius, and RHO is never increased. DELTA does not exist in Powell's COBYLA code.
12+
Following the idea in Powell's other solvers (UOBYQA, ..., LINCOA), our code uses DELTA as the
13+
trust-region radius, while RHO works a lower bound of DELTA and indicates the current resolution
14+
of the algorithm. DELTA is updated in a classical way subject to DELTA >= RHO, whereas RHO is
15+
updated as in Powell's COBYLA code and is never increased. The new implementation improves the
16+
performance of COBYLA.
917
'''
1018

1119
import numpy as np

0 commit comments

Comments
 (0)