Base Optimiser

class pbparam.BaseOptimiser[source]

Optimise an optimisation problem.

Parameters:

method (str, optional) – The method to use for optimisation, specific to each optimiser

optimise(optimisation_problem, x0=None, bounds=None, pybamm_logging_level=None)[source]

Optimise the optimisation problem.

Parameters:
  • optimisation_problem (pbparam.OptimisationProblem) – The optimisation problem to be optimised.

  • x0 (numpy array (optional)) – The initial guesses for the optimisation.

  • bounds (list of tuples (optional)) – The bounds for the optimisation.

  • pybamm_logging_level (str, optional) – The logging level to use when running the PyBaMM simulations. If None, it defaults to “ERROR”

Returns:

result – The results of the optimisation.

Return type:

OptimisationResult object.