#NEWLINE# def start_iteration( self ) : #NEWLINE# #INDENT# 'Perform initial setup before iteration loop begins.' #NEWLINE# super ( COBYLAdriver , self ) . run_iteration ( ) #NEWLINE# self . nparam = self . total_parameters ( ) #NEWLINE# self . ncon = self . total_ineq_constraints ( ) #NEWLINE# self . ncon += ( 2 * self . nparam ) #NEWLINE# self . g = zeros ( self . ncon , 'd' ) #NEWLINE# self . work_vector = zeros ( m . ncon , 'd' ) #NEWLINE# self . x = self . eval_parameters ( self . parent ) #NEWLINE# self . upper = self . get_upper_bounds ( ) #NEWLINE# self . lower = self . get_lower_bounds ( ) #NEWLINE# n = self . nparam #NEWLINE# m = self . ncon #NEWLINE# self . work_vector = zeros ( [ ( ( ( n * ( ( ( 3 * n ) + ( 2 * m ) ) + 11 ) ) + ( 4 * m ) ) + 6 ) ] , 'd' ) #NEWLINE# self . iact = zeros ( [ ( m + 1 ) ] , 'i' ) #NEWLINE# self . gg = zeros ( [ m ] , 'd' ) #NEWLINE# self . _continue = True