evaluate_bbob

modcma.modularcmaes.evaluate_bbob(fid, dim, iterations=50, label='', logging=False, data_folder=None, seed=42, instance=1, target_precision=1e-08, return_optimizer=False, **kwargs)

Helper function to evaluate a ModularCMAES on the BBOB test suite.

Parameters
  • fid (int) – The id of the function 1 - 24

  • dim (int) – The dimensionality of the problem

  • iterations (int = 50) – The number of iterations to be performed.

  • label (str = '') – The label to be given to the run, used for logging with BBOB

  • logging (bool = False) – Specifies whether to use logging

  • data_folder (str = None) – File path where to store data when logging = True

  • seed (int = 42) – The random seed to be used

  • instance (int = 1) – The bbob function instance

  • target_precision (float = 1e-8) – The target precision for the objective function value

  • return_optimizer (bool = False) – Whether to return the optimizer

  • **kwargs – These are directly passed into the instance of ModularCMAES, in this manner parameters can be specified for the optimizer.

Returns

  • evals – The number of evaluations for each run of the optimizer

  • fopts – The best fitness values for each run of the optimizer