pybop.problems.multi_fitting_problem#

Classes#

MultiFittingProblem

Problem class for joining mulitple fitting problems into one combined fitting problem.

Module Contents#

class pybop.problems.multi_fitting_problem.MultiFittingProblem(*args)[source]#

Bases: pybop.BaseProblem

Problem class for joining mulitple fitting problems into one combined fitting problem.

Extends BaseProblem in a similar way to FittingProblem but for multiple parameter estimation problems, which must first be defined individually.

Additional Attributes#

problemspybop.FittingProblem

The individual PyBOP fitting problems.

evaluate(inputs: pybop.parameters.parameter.Inputs, eis=False)[source]#

Evaluate the model with the given parameters and return the signal.

Parameters:

inputs (Inputs) – Parameters for evaluation of the model.

Returns:

y – The model output y(t) simulated with given inputs.

Return type:

np.ndarray

evaluateS1(inputs: pybop.parameters.parameter.Inputs)[source]#

Evaluate the model with the given parameters and return the signal and its derivatives.

Parameters:

inputs (Inputs) – Parameters for evaluation of the model.

Returns:

A tuple containing the simulation result y(t) as a dictionary and the sensitivities dy/dx(t) evaluated with given inputs.

Return type:

tuple[dict, np.ndarray]

set_initial_state(initial_state: dict | None = None)[source]#

Set the initial state to be applied to evaluations of the problem.

Parameters:

initial_state (dict, optional) – A valid initial state (default: None).

_dataset[source]#
_domain_data[source]#
combined_dataset[source]#
combined_domain_data = [][source]#
combined_parameters[source]#
combined_signal = [][source]#
models_to_check = [][source]#
n_domain_data[source]#
problems = [][source]#