aquakin.ForwardSensitivityResult#

class aquakin.ForwardSensitivityResult(solution, S, sens_params, model)[source]#

Bases: object

Result of forward_sensitivity().

Variables:
  • solution (object) – The reactor solution (BatchSolution / PFRSolution / BiofilmSolution) – the usual, uncapped state trajectory.

  • S (jnp.ndarray) – Sensitivity d(output)/d(theta) at the saved times, shape (n_t, n_species, n_sens_params). For a biofilm this is the bulk (measurable) sensitivity, aligned with solution.C.

  • sens_params (list[str]) – The sensitivity-parameter names (resolved to namespaced names).

  • model (object) – The compiled model (for the name accessors).

Parameters:
  • solution (Any)

  • S (Array)

  • sens_params (list[str])

  • model (Any)

__init__(solution, S, sens_params, model)#
Parameters:
  • solution (Any)

  • S (Array)

  • sens_params (list[str])

  • model (Any)

Return type:

None

Methods

S_named(species)

Sensitivity of one species over time, shape (n_t, n_sens_params).

__init__(solution, S, sens_params, model)

dC_dparam(species, param)

Sensitivity of one species w.r.t.

Attributes

solution

S

sens_params

model

S_named(species)[source]#

Sensitivity of one species over time, shape (n_t, n_sens_params).

Parameters:

species (str)

Return type:

Array

dC_dparam(species, param)[source]#

Sensitivity of one species w.r.t. one parameter, shape (n_t,).

Parameters:
  • species (str)

  • param (str)

Return type:

Array