Skip to content

feat(indLin): second- and third-order sensitivities of the forcing #1188

Description

@mattfidler

Background

rxSensMatExp() already supports calcSens2/calcSens3 (R/indLin.R:400-511),
using .rxIndLinChainD() (:165) for repeated total derivatives and
.rxIndLinNdAccumulator() (:181) to sum coefficients when several
differentiation paths land on the same (from, to) pair -- which happens
whenever parameters coincide (p == q, p == q == r).

The forcing terms added at first order need the same treatment at second and
third order.

Test

Extend tests/testthat/test-mexp-nonmem.R:593 (calcSens2/calcSens3 against the
generic ODE path) and :639 (repeated parameters / Hessian diagonal), including
the finite-difference cross-check used for third order, since there is no
generic-ODE calcSens3 reference to compare against.

Blocked by #1187.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions