Skip to content

Commit 8260dfa

Browse files
committed
Ignore convergence criteria
1 parent a7d5163 commit 8260dfa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

advanced/mathematical_optimization/index.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -887,11 +887,10 @@ Lets try to minimize the norm of the following vectorial function::
887887
>>> x0 = np.zeros(10)
888888
>>> sp.optimize.leastsq(f, x0)
889889
(array([0. , 0.11111111, 0.22222222, 0.33333333, 0.44444444,
890-
0.55555556, 0.66666667, 0.77777778, 0.88888889, 1. ]), 2)
890+
0.55555556, 0.66666667, 0.77777778, 0.88888889, 1. ]), ...)
891891

892-
This took 67 function evaluations (check it with 'full_output=1'). What
893-
if we compute the norm ourselves and use a good generic optimizer
894-
(BFGS)::
892+
This took 67 function evaluations (check it with 'full_output=True'). What
893+
if we compute the norm ourselves and use a good generic optimizer (BFGS)::
895894

896895
>>> def g(x):
897896
... return np.sum(f(x)**2)

0 commit comments

Comments
 (0)