#NEWLINE# def _internal_observer( self , population , num_generations , num_evaluations , args ) : #NEWLINE# #INDENT# for ( i , p ) in enumerate ( population ) : #NEWLINE# #INDENT# self . _observer_file . write ( '{0}, {1}, {2}\n' . format ( i , population . fitness , str ( p . candidate ) ) ) #NEWLINE# self . _observer_file . flush ( )