#NEWLINE# def parse_output( self , listfile , clean = False ) : #NEWLINE# #INDENT# fp = open ( listfile ) #NEWLINE# header = fp . readline ( ) #NEWLINE# ( columns , rows ) = header . split ( ) #NEWLINE# rows = int ( rows ) #NEWLINE# data = fp . readlines ( ) #NEWLINE# self . obj_val = int ( data [ 0 ] . split ( ) [ ( - 1 ) ] ) #NEWLINE# results = [ int ( x ) for x in data [ ( - rows ) : ] ] #NEWLINE# results = [ i for ( i , x ) in enumerate ( results ) if ( x == 1 ) ] #NEWLINE# fp . close ( ) #NEWLINE# if self . clean : #NEWLINE# #INDENT# self . cleanup ( ) #NEWLINE# #UNINDENT# return results