code: def manage_itstat(self):
          
  
          # Extract and record iteration stats
          itst = self.iteration_stats()
          self.itstat.append(itst)
          self.display_status(self.fmtstr, itst)
docs: Compute, record, and display iteration statistics.