#NEWLINE# def findNextParamsBiased( self ) : #NEWLINE# #INDENT# firstRunFlag = True #NEWLINE# tempCost = None #NEWLINE# for sp in self . searchParams : #NEWLINE# #INDENT# res = so . minimize ( self . predBiasedCost , sp , bounds = self . optBounds , tol = 1e-06 ) #NEWLINE# if ( firstRunFlag or ( res . fun < tempCost ) ) : #NEWLINE# #INDENT# self . nextParams = nm . array ( res . x ) #NEWLINE# tempCost = res . fun #NEWLINE# firstRunFlag = False