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

explicit 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.

inline realtype gett() const

Accessor for current time t.

Returns

t

inline int getwhich() const

Accessor for which.

Returns

which

inline int *getwhichptr()

Accessor for pointer to which.

Returns

which

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

Accessor for dJydx.

Returns

dJydx

inline AmiVector const &getAdjointState() const

Accessor for xB.

Returns

xB

inline AmiVector const &getAdjointQuadrature() const

Accessor for xQB.

Returns

xQB