@@ -279,6 +279,7 @@ def run_ndstep(logfname, minimize_function, options, stclass=STEP, minf=step_min
279279 logf = logf , dimselect = options ['dimselect' ],
280280 stagiter = options ['stagiter' ],
281281 force_STEP = options ['force_STEP' ],
282+ force_Brent = options ['force_Brent' ],
282283 split_at_pred = options ['split_at_pred' ],
283284 posik_SQI = options ['posik_SQI' ],
284285 stclass = stclass , minf = minf ,
@@ -304,7 +305,7 @@ def run_ndstep(logfname, minimize_function, options, stclass=STEP, minf=step_min
304305
305306def usage (err = 2 ):
306307 print ('Benchmark ndstep, ndstep_seq, ndsqistep, ndsqistep_seq, scipy_seq' )
307- print ('Usage: test.py [-b BURNIN] [-f {f4,bFID}] [-d DIM] [-e {rr,random,mindiff,maxdiff,diffpd,rdiffpd}] [-g EPSILON] [-i MAXITER] [-s SEED] [-r REPEATS] [-t STAGITER] [-I FORCE_STEP_I] [-p|-P] [-o] {nd[sqi]step,nd[sqi]step_seq,scipy_seq}' )
308+ print ('Usage: test.py [-b BURNIN] [-f {f4,bFID}] [-d DIM] [-e {rr,random,mindiff,maxdiff,diffpd,rdiffpd}] [-g EPSILON] [-i MAXITER] [-s SEED] [-r REPEATS] [-t STAGITER] [-I FORCE_STEP_I] [-B FORCE_BRENT_I] [- p|-P] [-o] {nd[sqi]step,nd[sqi]step_seq,scipy_seq}' )
308309 sys .exit (err )
309310
310311
@@ -321,6 +322,7 @@ def usage(err=2):
321322 'burnin' : 4 , # *D iters are spend systematically sampling first
322323 'stagiter' : None , # *D iters non-improving will cause a restart
323324 'force_STEP' : 0 , # SQISTEP specific
325+ 'force_Brent' : 10 , # SQISTEP specific
324326 'split_at_pred' : True , # SQISTEP specific
325327 'posik_SQI' : False , # SQISTEP specific
326328 'disp' : False ,
@@ -330,7 +332,7 @@ def usage(err=2):
330332 bbob_experiment = None
331333
332334 try :
333- opts , args = getopt .getopt (sys .argv [1 :], "b:d:e:f:g:hi:nNopPr:s:I:t:v" , ["help" ])
335+ opts , args = getopt .getopt (sys .argv [1 :], "b:B: d:e:f:g:hi:nNopPr:s:I:t:v" , ["help" ])
334336 except getopt .GetoptError as err :
335337 # print help information and exit:
336338 print (err ) # will print something like "option -a not recognized"
@@ -361,6 +363,8 @@ def usage(err=2):
361363 options ['egreedy' ] = float (a )
362364 elif o == "-b" :
363365 options ['burnin' ] = int (a )
366+ elif o == "-B" :
367+ options ['force_Brent' ] = int (a )
364368 elif o == "-d" :
365369 options ['dim' ] = int (a )
366370 elif o == "-i" :
0 commit comments