Struct BwdSimWorkspace

Struct Documentation

struct BwdSimWorkspace

The BwdSimWorkspace class is used to store temporary simulation state during backward simulations.

Public Functions

BwdSimWorkspace(gsl::not_null<Model*> model, gsl::not_null<Solver const*> solver)

Constructor.

Parameters:
  • model – The model for which to set up the workspace.

  • solver – The solver for which to set up this workspace.

Public Members

Model *model_

The model.

AmiVector xB_

adjoint state vector (size: nx_solver)

AmiVector dxB_

differential adjoint state vector (size: nx_solver)

AmiVector xQB_

quadrature state vector (size: nJ x nplist, col-major)

std::vector<int> nroots_

array of number of found roots for a certain event type

std::vector<Discontinuity> discs_

array containing the time-points of discontinuities

int which = 0

index of the backward problem