Class BackwardProblem

Class Documentation

class amici::BackwardProblem

class to solve backwards problems.

solves the backwards problem for adjoint sensitivity analysis and handles events and data-points

Public Functions

BackwardProblem(const ForwardProblem &fwd, const SteadystateProblem *posteq)

Construct backward problem from forward problem.

Parameters
  • fwd: pointer to corresponding forward problem

  • posteq: pointer to postequilibration problem, can be nullptr

void workBackwardProblem()

Solve the backward problem.

If adjoint sensitivities are enabled this will also compute sensitivities. workForwardProblem must be called before this is function is called.

realtype gett() const

Accessor for current time t.

Return

t

int getwhich() const

Accessor for which.

Return

which

int *getwhichptr()

Accessor for pointer to which.

Return

which

std::vector<realtype> const &getdJydx() const

Accessor for dJydx.

Return

dJydx

AmiVector const &getAdjointState() const

Accessor for xB.

Return

xB

AmiVector const &getAdjointQuadrature() const

Accessor for xQB.

Return

xQB