rxEventSensLoadModel: Point the rxode2 event-sensitivity globals at a...

View source: R/eventSens.R

rxEventSensLoadModelR Documentation

Point the rxode2 event-sensitivity globals at a jump-sensitivity model

Description

For downstream packages (e.g. nlmixr2est's FOCEi) that solve a sensitivity model through a direct C++ ind_solve() loop, bypassing rxSolve(): sets rxode2's event ("jump") sensitivity function pointers and runtime dims to model and turns the jumps on. The jump blocks are bounds-guarded, so smaller models solved afterwards skip the injection safely. Pair with rxEventSensDeactivate() after the run.

Usage

rxEventSensLoadModel(model)

Arguments

model

A built jump-sensitivity model (carrying eventSensInfo).

Value

invisibly TRUE when the jumps were activated, FALSE otherwise (fd model / no sensitivities).


rxode2 documentation built on July 28, 2026, 5:08 p.m.