'print the current list of results'

def print_results(self):

    results = self.average_results()
    results = sorted(results, key=(lambda x: (x.nfail, x.mean_time)))
    if (not results):
        return
    print('')
    print('=========================================================')
    print(('Optimizer    benchmark:    %s' % self.function_name))
    print(('dimensions:    %d,    extra    kwargs:    %s' % (results[0].ndim, str(self.minimizer_kwargs))))
    print(('averaged    over    %d    starting    configurations' % results[0].ntrials))
    print('        Optimizer                nfail            nfev                njev                nhev                time')
    print('---------------------------------------------------------')
    for res in results:
        print(('%11s        |    %4d        |    %4d        |    %4d        |    %4d        |    %.6g' % (res.name, res.nfail, res.mean_nfev, res.mean_njev, res.mean_nhev, res.mean_time)))
