Skip to content

Commit 4702e2b

Browse files
committed
DOC: optimize.leastsq default maxfev clarification
1 parent 989c75f commit 4702e2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scipy/optimize/minpack.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,9 @@ def leastsq(func, x0, args=(), Dfun=None, full_output=0,
289289
Orthogonality desired between the function vector and the columns of
290290
the Jacobian.
291291
maxfev : int, optional
292-
The maximum number of calls to the function. If zero, then 100*(N+1) is
293-
the maximum where N is the number of elements in x0.
292+
The maximum number of calls to the function. If `Dfun` is provided
293+
then the default `maxfev` is 100*(N+1) where N is the number of elements
294+
in x0, otherwise the default `maxfev` is 200*(N+1).
294295
epsfcn : float, optional
295296
A variable used in determining a suitable step length for the forward-
296297
difference approximation of the Jacobian (for Dfun=None).

0 commit comments

Comments
 (0)