def finstances(self):
        for dim in self.dimensions:
            maxfunevals = self.maxfev * dim
            fevs = np.zeros(len(self.function_ids) * len(self.instances))
            fevs_i = 0
            for fun_id in self.function_ids:
                for iinstance in self.instances:
                    self.f.setfun(*bbobbenchmarks.instantiate(fun_id, iinstance=iinstance))
                    yield FInstance(self.f, dim, fun_id, iinstance, maxfunevals)

                    fevs[fevs_i] = self.f.evaluations
                    fevs_i += 1

                print '  % -12s      date and time: %s' % (self.shortname, time.asctime())

            overshoot_idx = np.argmax(fevs)
            overshoot = fevs[overshoot_idx]
            overshoot_f = self.function_ids[int(overshoot_idx / len(self.instances))]
            overshoot_i = self.instances[overshoot_idx % len(self.instances)]
            print('---- % -12s dimension %d-D done ----  (max FEV: %d/%d in f%d:%d)' %
                    (self.shortname, dim, overshoot, maxfunevals, overshoot_f, overshoot_i))
An iterator that generates all function instances
dataset/ETHPy150Open pasky/cocopf/experiment.py/Experiment.finstances