Skip to content

Commit 0f8883d

Browse files
committed
ndstep: stagiter default 50*DIM -> 2000
We did not find any good dim-scaling constant.
1 parent 6cd4e06 commit 0f8883d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ndstep.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def ndstep_minimize(fun, bounds, args=(), maxiter=2000, callback=None,
4545
4646
The stopping condition is either maxiter total iterations or when
4747
stagiter optimization steps are done without reaching an improvement
48-
(whichever comes first). By default, stagiter is 50*DIM.
48+
(whichever comes first). By default, stagiter is 2000.
4949
5050
Dimensions are selected using a round-robin strategy by default.
5151
You can pass a custom dimension selection function that is called
@@ -80,7 +80,7 @@ def ndstep_minimize(fun, bounds, args=(), maxiter=2000, callback=None,
8080
dim = np.shape(bounds[0])[0]
8181
disp = options.get('disp', False)
8282
if stagiter is None:
83-
stagiter = 50 * dim
83+
stagiter = 2000
8484
callback_interval = 10 * dim
8585

8686
xmin = np.array(point0)

0 commit comments

Comments
 (0)