public static boolean step ( IterativeOptimization search ) { for ( int i = 0 ; i < 10000 ; i ++ ) { boolean converged = search . iterate ( ) ; if ( converged || ! search . isUpdated ( ) ) { return converged ; } } throw new RuntimeException ( "After 10,000 iterations it failed to take a step! Probably a bug." ) ; }
Performs a single step by iterating until the parameters are updated .