43 The NONMEM-PREDPP Load Module
1 Introduction
To use PREDPP a number of PREDPP subroutines must be linked with the NONMEM subroutines. This is described in detail in Guide III. Briefly, the PREDPP subroutines consist of five varieties:
- Routines supplied by the NONMEM Project Group (e.g.
PRED), each of whose presence in a NONMEM-PREDPP load module is independent of the choice of the pharmacokinetic model. - Routines supplied by the user (i.e. PK and ERROR), each of which must be present in a NONMEM-PREDPP load modudule.
- Routines supplied by the NONMEM Project Group (e.g.
ADVAN1,TRANS1), each of whose presence in a NONMEM-PREDPP load module depends on the choice of the pharmacokinetic model and the set of basic parameters. - Routines supplied by the user (e.g. DES), each of whose presence in a NONMEM-PREDPP load module depends on the choice of the pharmacokinetic model (these are described in Chapter VI).
- Auxilliary subroutines and files.
With NONMEM 7, subroutine MUMODEL2 is required. This subroutine should contain only the code that is needed to compute any MU parameters (MU_1, MU_2, etc.) that are used in PK or PRED. When NM-TRAN is used, subroutine MUMODEL2 is always included in FSUBS. It is an empty subroutine unless MU parameters are defined in $PK or $PRED abbreviated code.
With NONMEM 7, subroutine FSIZESR is required. NONMEM dynamically allocates the sizes of its arrays at run-time, based on the values in FSIZESR. When NM-TRAN is used, FSIZESR is included in FSUBS.
Arrays internal to PREDPP are statically allocated to improve run times. Starting with NONMEM 7.2, module PRSIZES is required to specify the array sizes. When PREDPP is installed, module PRSIZES is found in file resource/SIZES.f90. When nmfe is used, a new version of the module is generated in file prsizes.f90. Some of the constants in PRSIZES are assessed for the current problem; others are copied from default values in SIZES.f90. If nmfe performs “pr recompilation”, the appropriate routines from PREDPP are recompiled (in directory temp_dir) using constants from prsizes.f90. (Some of the constants in PRSIZES are also used to compile subroutine PRED when PREDPP is not used. Subroutine PRED may be user-supplied or generated from $PRED abbreviated code.) Note that nmfe options such as -prdefault may be used to override pr recompilation.
The user may override many of the parameter values in FSIZES and prsizes with the $SIZES record.
See Introduction to NONMEM 7, Dynamic Memory Allocation, for information about dynamic and static allocation. See Guide VIII and on-line help for information about nmfe.
Subroutines of category (1) and (3) are present in the pr directory of the installed nonmem directory, although nmfe may use recompiled versions in temp_dir as described above. Subroutines of categories (2) and (4) are not present in pr. They must be in the FSUBS file. Subroutines in FSUBS include those that are generated from NM-TRAN abbreviated code (see Guide IV), and user-written subroutines specified on the $SUBROUTINES record. The latter are copied to FSUBS for compilation.
Subroutines of category (1) are: PRED, PREDI, CHECK, SADVAN, SSS, INFN.1 The user can substitute a user-written routine for the INFN found on the distribution medium; see section VI.A. Another subroutine of category 1 is subroutine SSS0. Its entry name is SSS, and it may be substituted for the regular SSS routine when there are no steady-state doses in the data set (i.e. no nonzero steady-state data items appearing in dose event records). The advantage in doing this is mainly to save space in computer memory if space is a problem.
Subroutines of category (3) constitute the PREDPP Library. Their use is described in the next section.
2 The PREDPP Library
With every NONMEM-PREDPP load module two subroutines are required, ADVAN and TRANS. Choices for each are found in the PREDPP Library. Some choices for ADVAN require additional subroutines from the Library, as well as certain user-supplied subroutines described in chapter VI.
Choices for ADVAN are named ADVAN1, ADVAN2, etc. These are informal names; the formal name for each routine is ADVAN since this is the entry name used in the calling program in PREDPP. Similarly, choices for TRANS are informally named TRANS1, TRANS2, etc.
In addition to an ADVAN and TRANS subroutine, a NONMEM-PREDPP load module may require an SS subroutine. The SS routine computes steady-state kinetics. If the computation of steady-state kinetics is specified in the data set, then an SS routine is required in the load module. Otherwise, an SS routine is still required, unless SSS0 is used (see section VII.A). For the analytic ADVANs, there is a one-to-one correspondence between ADVAN and SS subroutines. (With early versions of PREDPP, it was possible to use SS6 with analytic ADVANS. This is no longer supported.) So, for example, if the user chooses ADVAN3, then SS3 is also chosen. The SS6 subroutine computes steady-state kinetics in a very general way and may be used with the general ADVANs: ADVAN6, ADVAN8, ADVAN10, ADVAN13, ADVAN14, ADVAN16, ADVAN18. With ADVAN9 and ADVAN15 and ADVAN17, only SS9 can be used. Some SS routines also require additional subroutines from the Library, as well as certain user-supplied subroutines. NM-TRAN creates a file FREPORT that describes exactly which subroutines are needed for the NONMEM load module.
3 ADVAN
In the next subsections characterisics of each of the various ADVAN routines are tabled, including definitions of the various TRANS routines. With each ADVAN, the basic and additional PK parameters that are allowed with the ADVAN are listed. Variable names used in abbreviated code are used.
To compute the kinetic equations for a kinetic model, PREDPP - but more precisely, the chosen ADVAN - uses an internal set of parameters. For a linear kinetic model these parameters are the microconstants, i.e. rate constants, of the model. If the model is a general linear model, the MODEL subroutine specifies a numbering of these parameters (see section VI.B). The kinetic equations for a general nonlinear kinetic model PREDPP essentially consist of the differential-algebraic equations given by the user in the DES and AES routines to describe the model (see sections VI.C and VI.E). The parameters of these equations comprise the internal set of parameters.
There are only certain TRANS routines from the PREDPP Library that may be used with each choice of an ADVAN routine. (However, a user-supplied TRANS routine may be used; see section III.M.) It can be seen in the following subsections that with an ADVAN implementing a general linear or general nonlinear model, the only TRANS subroutine that may be used is TRANS1. In this case the set of basic PK parameters for TRANS1 is the same as the set of internal parameters, and TRANS1 translates each basic parameter into itself.
3.1 C.1 ADVAN1 One Compartment Linear Model
| Compt. No. | Function | Initial Status | On/Off Allowed | Dose Allowed | Default for Dose | Default for Obs. |
|---|---|---|---|---|---|---|
| 1 | Central | On | No | Yes | Yes | Yes |
| 2 | Output | Off | Yes | No | No | No |
Maximum number of basic PK parameters: 2
TRANS subroutines that may be used:
TRANS1 — Basic PK Parameters:
K— rate constant of elimination- skip
TRANS2 — Basic PK Parameters:
CL— clearanceV— volume of distribution
Relationship: K = CL/V
Additional PK Parameters:
S1orSC— scaling parameter for central compartmentS2orS0— scaling parameter for output compartmentF1— bioavailability for central compartmentR1— rate for central compartmentD1— duration for central compartmentALAG1— absorption lag time for central compartmentF0orF2orFO— output fractionXSCALE— time scale parameterMTIME(i)— model event time parameters
Steady-state subroutines: SS1. Other required user or Library routines: none.
3.2 C.2 ADVAN2 One Compartment Linear Model with First Order Absorption
| Compt. No. | Function | Initial Status | On/Off Allowed | Dose Allowed | Default for Dose | Default for Obs. |
|---|---|---|---|---|---|---|
| 1 | Drug Depot | Off | Yes | Yes | Yes | No |
| 2 | Central | On | No | Yes | No | Yes |
| 3 | Output | Off | Yes | No | No | No |
Maximum number of basic PK parameters: 3
TRANS subroutines that may be used:
TRANS1 — Basic PK Parameters:
K— rate constant of elimination- skip
Ka— absorption rate constant
TRANS2 — Basic PK Parameters:
CL— clearanceV— volume of distributionKa— absorption rate constant
Relationship: K = CL/V, Ka = Ka
Additional PK Parameters:
S1— scaling parameter for depot compartmentS2orSC— scaling parameter for central compartmentS3orS0— scaling parameter for peripheral compartmentF1— bioavailability for drug depotF2— bioavailability for peripheral compartmentR1,R2— rate for depot/peripheral compartmentD1,D2— duration for depot/peripheral compartmentALAG1,ALAG2— absorption lag time for depot/central compartmentF0orF3orFO— output fractionXSCALE— time scale parameterMTIME(i)— model event time parameters
Steady-state subroutines: SS2. Other required user or Library routines: none.
3.3 C.3 ADVAN3 Two Compartment Linear Mammillary Model
| Compt. No. | Function | Initial Status | On/Off Allowed | Dose Allowed | Default for Dose | Default for Obs. |
|---|---|---|---|---|---|---|
| 1 | Central | On | No | Yes | Yes | Yes |
| 2 | Peripheral | On | No | Yes | No | No |
| 3 | Output | Off | Yes | No | No | No |
Maximum number of basic PK parameters: 4
TRANS subroutines that may be used:
TRANS1 — Basic PK Parameters:
K— rate constant of eliminationK12— rate constant from central to peripheralK21— rate constant from peripheral to central- skip
TRANS3 — Basic PK Parameters:
CL— clearanceV— central volumeQ— intercompartmental clearanceVSS— volume of distribution at steady-state
Relationship: K = CL/V, K12 = Q/V, K21 = Q/(VSS-V)
TRANS4 — Basic PK Parameters:
CL— clearanceV1— central volumeQ— intercompartmental clearanceV2— peripheral volume
Relationship: K = CL/V1, K12 = Q/V1, K21 = Q/V2
TRANS5 — Basic PK Parameters:
AOB— A/BALPHA— \(\alpha\)BETA— \(\beta\)- skip
Relationship: K21=(AOB * BETA + ALPHA)/(AOB + 1), K = (ALPHA * BETA)/K21, K12 = ALPHA + BETA - K21 - K
TRANS6 — Basic PK Parameters:
ALPHA— \(\alpha\)BETA— \(\beta\)K21— rate constant peripheral to central- skip
Relationship: K = (ALPHA * BETA)/K21, K12 = ALPHA + BETA - K21 - K. Constraint: ALPHA < K21 < BETA. The roles of ALPHA and BETA are exchangeable.
Additional PK Parameters:
S1orSC— scaling parameter for central compartmentS2— scaling parameter for peripheral compartmentS3orS0— scaling parameter for output compartmentF1,F2— bioavailability for central/peripheral compartmentR1,R2— rate for central/peripheral compartmentD1,D2— duration for central/peripheral compartmentALAG1,ALAG2— absorption lag time for central/peripheral compartmentF0orF3orFO— output fractionXSCALE— time scale parameterMTIME(i)— model event time parameters
Steady-state subroutine: SS3. Other required user or Library routines: none.
3.4 C.4 ADVAN4 Two Compartment Linear Mammillary Model with First Order Absorption
| Compt. No. | Function | Initial Status | On/Off Allowed | Dose Allowed | Default for Dose | Default for Obs. |
|---|---|---|---|---|---|---|
| 1 | Drug Depot | Off | Yes | Yes | Yes | No |
| 2 | Central | On | No | Yes | No | Yes |
| 3 | Peripheral | On | No | Yes | No | No |
| 4 | Output | Off | Yes | No | No | No |
Maximum number of basic PK parameters: 5
TRANS subroutines that may be used:
TRANS1 — Basic PK Parameters:
K— rate constant of eliminationK23— rate constant from central to peripheralK32— rate constant from peripheral to central- skip
Ka— absorption rate constant
TRANS3 — Basic PK Parameters: CL, V, Q, VSS, Ka. Relationship: K = CL/V, K23 = Q/V, K32 = Q/(VSS-V), Ka = Ka.
TRANS4 — Basic PK Parameters: CL, V2, Q, V3, Ka. Relationship: K = CL/V2, K23 = Q/V2, K32 = Q/V3.
TRANS5 — Basic PK Parameters: AOB, ALPHA, BETA, skip, Ka. Relationship: K32 = (AOB * BETA + ALPHA)/(AOB + 1), K = (ALPHA * BETA)/K32, K23 = ALPHA + BETA - K32 - K, Ka = Ka.
TRANS6 — Basic PK Parameters: ALPHA, BETA, K32, skip, Ka. Relationship: K = (ALPHA * BETA)/K32, K23 = ALPHA + BETA - K32 - K, Ka = Ka. Constraint: ALPHA < K32 < BETA. The roles of ALPHA and BETA are exchangeable.
Additional PK Parameters:
S1,S2(orSC),S3,S4(orS0) — scaling parametersF1,F2,F3— bioavailability fractionsR1,R2,R3— rate parametersD1,D2,D3— duration parametersALAG1,ALAG2,ALAG3— absorption lag timesF0orF4orFO— output fractionXSCALE— time scale parameterMTIME(i)— model event time parameters
Steady-state subroutine: SS4. Other required user or library routines: none.
3.5 C.5 ADVAN5 General Linear Model
Compartment attributes set by subroutine MODEL. Suppose there are \(m\) compartments in the system, including the output compartment.
TRANS subroutines that may be used:
TRANS1 — Basic PK Parameters:
KijorKiTj— rate constant from compartment \(i\) to compartment \(j\)Ki0orKiT0— rate constant from compartment \(i\) to output compartmentKin+1orKiTn+1— rate constant from compartment \(i\) to output compartment
Additional PK parameters:
For each compartment \(n\) in the system:
Sn— scaling parameter for compt. \(n\)S0— alternate name for scaling parameter for compt. \(m\) (output compt.)
For each dosable compartment \(n\) in the system:
Fn— bioavailability for compt. \(n\)Rn— rate for compt. \(n\)Dn— duration for compt. \(n\)ALAGn— absorption lag time for compt. \(n\)
Other additional PK parameters:
F0orFmorFO— output fractionXSCALE— time scale parameterMTIME(i)— model event time parameters
Steady-state subroutine: SS5. Other required user or library routines: User: MODEL; Library: REXPON, RXSUBS.
Notes:
ADVAN5andSS5may be used when the eigenvalues of the rate constant matrix are complex, e.g. with a physiological-based pharmacokinetic flow model. If the eigenvalues are known to be real (which is true for many pharmacokinetic systems), then it is more efficient to useADVAN7andSS7.ADVAN5andSS5are based on a method involving the matrix exponential. The algorithm is described in “Contributions to the computation of the matrix exponential” by K.C. Ng. Report 212 of the Center for Pure and Applied Mathematics, University of California, Berkeley (1984). See also “A recurrence among the elements of functions of triangular matrices” by B.N. Parlett. Linear Algebra and Its Applications 14, 117-121 (1976).- The Laplacian method is not directly supported with
ADVAN5. The$ESTIMATIONrecord must include theNUMERICALoption withLAPLACIAN. - Use of the letter
Tas a separator between the two compartment numbers of a basic PK parameter is optional unless there are two possible interpretations of the numbers that followK. E.g., with 12 compartments,K111is ambiguous. It should be codedK1T11orK11T1, depending if it symbolizes the rate constant from compartment 1 to compartment 11 or from compartment 11 to compartment 1.
3.6 C.6 ADVAN6 General Nonlinear Model
Compartment attributes set by subroutine MODEL. Suppose there are \(m\) compartments in the system, including the output compartment.
TRANS subroutines that may be used:
TRANS1 — Explicit Basic PK Parameters: P(i) (the \(i\)th basic PK parameter). Implicit basic PK parameters: a $PK-defined variable also used in the $DES block.
Additional PK parameters: Same structure as ADVAN5 (Sn, S0, Fn, Rn, Dn, ALAGn, F0/Fm/FO, XSCALE, MTIME(i)).
Steady-state subroutine: SS6. Other required user or library routines: User: MODEL, DES, TOL; Library: DVERK1, FCN1.
Notes:
ADVAN6uses IMSL’s DVERK, a Runge-Kutta-Verner fifth and sixth order method of integration, for nonstiff problems.- If
SS6is used, Library routines ZSPOW1 and FCN2 are also required. - See Chapter VI Section D.B for specification of relative and absolute tolerance. With
ADVAN6, the specifications for compartment 1 apply to all compartments. - There is a limit on the number of times the differential equations are computed during any one integration over a state interval. NONMEM may terminate when this limit is reached, in which case an appropriate message appears. The limit is given by
MAXFCNinSIZES. (With NONMEM 74, this is 1000000.) The$SIZESrecord may be used to supply a different value forMAXFCN.
3.7 C.7 ADVAN7 General Linear Model with Real Eigenvalues
Compartment attributes set by subroutine MODEL. Suppose there are \(m\) compartments in the system, including the output compartment.
TRANS subroutines that may be used:
TRANS1 — Basic PK Parameters: Kij or KiTj (rate constant from compartment \(i\) to compartment \(j\)); Ki0 or KiT0 (rate constant from compartment \(i\) to output compartment); Kin+1 or KiTn+1 (rate constant from compartment \(i\) to output compartment).
Additional PK parameters: Same structure as ADVAN5.
Steady-state subroutine: SS7. Other required user or library routines: User: MODEL; Library: RRXPON, RXSUBS.
Notes:
ADVAN7andSS7may be used when the eigenvalues of the rate constant matrix are known to be real (which is true for many pharmacokinetic systems). It is more efficient to useADVAN7thanADVAN5in this case.ADVAN7andSS7are based on a method involving the matrix exponential. The algorithm is a modification of that described in “Contributions to the computation of the matrix exponential” by K.C. Ng. Report 212 of the Center for Pure and Applied Mathematics, University of California, Berkeley (1984). See also “A recurrence among the elements of functions of triangular matrices” by B.N. Parlett. Linear Algebra and Its Applications 14, 117-121 (1976).- The Laplacian method is not directly supported with
ADVAN7. The$ESTIMATIONrecord must include theNUMERICALoption withLAPLACIAN. - Use of the letter
Tas a separator between the two compartment numbers of a basic PK parameter is optional unless there are two possible interpretations of the numbers that followK.
3.8 C.8 ADVAN8 General Nonlinear Model with Stiff Differential Equations
Compartment attributes set by subroutine MODEL. Suppose there are \(m\) compartments in the system, including the output compartment.
TRANS subroutines that may be used:
TRANS1 — Explicit Basic PK Parameters: P(i). Implicit basic PK parameters: a $PK-defined variable also used in the $DES block.
Additional PK parameters: Same structure as ADVAN5.
Steady-state subroutine: SS6. Other required user or library routines: User: MODEL, DES, TOL; Library: DGEAR1, FCN1, FCN3.
Notes:
ADVAN8uses IMSL’s DGEAR, the Gear method of numerical integration, for stiff problems.- If
SS6is used, Library routines ZSPOW1 and FCN2 are also required. - See Chapter VI Section D.B for specification of relative and absolute tolerance. With
ADVAN8, the specifications for compartment 1 apply to all compartments. - There is a limit on the number of times the differential equations are computed during any one integration over a state interval. NONMEM may terminate when this limit is reached, in which case an appropriate message appears. The limit is given by
MAXFCNinSIZES. The$SIZESrecord may be used to supply a different value forMAXFCN.
3.9 C.9 ADVAN9 General Nonlinear Model with Equilibrium Compartments
Compartment attributes set by subroutine MODEL. Suppose there are \(m\) compartments in the system, including the output compartment.
TRANS subroutines that may be used:
TRANS1 — Explicit Basic PK Parameters: P(n) (the \(n\)th basic PK parameter). Implicit basic PK parameters: a $PK-defined variable also used in the $AES or $DES block.
Additional PK parameters: Same structure as ADVAN5.
Steady-state subroutine: SS9. Other required user or library routines: User: MODEL, DES, AES, TOL; Library: ADDA, FCN5, JAC, LEQT22, LSODI1, RES, ZSPOW2.
Notes:
ADVAN9uses the Livermore solver for ordinary differential equations, implicit form (LSODI), using the backward differentiation formulas (BDF) for stiff problems.ADVAN9may be used with a system of differential-algebraic equations specifying the kinetics of a system with equilibrium compartments. It may be used with a system consisting of only algebraic equations. It may also be useful when the system consists of only stiff differential equations, and there are no equilibrium compartments.- If
SS9is used, Library routines ZSPOW1, FCN2 and FCN4 are also required. - See Chapter VI Section D.B for specification of relative and absolute tolerance. As of NM74, for
ADVAN9only,ATOL=99specifies that variable, calculatedATOLvalues are to be derived, in accordance with an algorithm that is present inADVAN9. - When there are no equilibrium compartments, the AES routine is not called, but a dummy routine may need to be included in the load module if the loader considers an unresolved reference to be a fatal error.
- The Laplacian method is not directly supported with
ADVAN9. The$ESTIMATIONrecord must include theNUMERICALoption withLAPLACIAN. - There is a limit on the number of times the differential equations are computed during any one integration over a state interval. NONMEM may terminate when this limit is reached, in which case an appropriate message appears. The limit is given by
MAXFCNinSIZES. - There is a limit on the maximum number of integration steps. For
ADVAN9, it is the largest possible integer value. Reserved variableMXSTEPmay be set in$PKto a smaller value.
3.10 C.10 ADVAN10 One Compartment Model with Michaelis-Menten Elimination
| Compt. No. | Function | Initial Status | On/Off Allowed | Dose Allowed | Default for Dose | Default for Obs. |
|---|---|---|---|---|---|---|
| 1 | Central | On | No | Yes | Yes | Yes |
| 2 | Output | Off | Yes | No | No | No |
Maximum number of basic PK parameters: 3
TRANS subroutines that may be used:
TRANS1 — Basic PK Parameters:
VM— maximum rateKM— Michaelis constant- skip
Additional PK Parameters:
S1orSC— scaling parameter for central compartmentS2orS0— scaling parameter for output compartmentF1,R1,D1,ALAG1— for central compartmentF0orF2orFO— output fractionXSCALE— time scale parameterMTIME(i)— model event time parameters
Steady-state subroutines: SS6. Other required user or library routines: User: TOL; Library: MMPHI.
Notes:
- The computations are based on: Beal, S.L. (1983), “Computation of the explicit solution to the Michaelis-Menten equation”, Journal of Pharmacokinetics and Biopharmaceutics 11, 641-657.
3.11 C.11 ADVAN11 Three Compartment Linear Model
| Compt. No. | Function | Initial Status | On/Off Allowed | Dose Allowed | Default for Dose | Default for Obs. |
|---|---|---|---|---|---|---|
| 1 | Central | On | No | Yes | Yes | Yes |
| 2 | Peripheral 1 | On | No | Yes | No | No |
| 3 | Peripheral 2 | On | No | Yes | No | No |
| 4 | Output | Off | Yes | No | No | No |
Maximum number of basic PK parameters: 6
TRANS subroutines that may be used:
TRANS1 — Basic PK Parameters:
K— rate constant of eliminationK12— rate constant from central to peripheral 1K21— rate constant from peripheral 1 to centralK13— rate constant from central to peripheral 2K31— rate constant from peripheral 2 to central- skip
TRANS4 — Basic PK Parameters:
CL— clearanceV1— central volumeQ2— intercompartmental clearance (central and periph. 1)V2— peripheral 1 volumeQ3— intercompartmental clearance (central and periph. 2)V3— peripheral 2 volume
Relationship: K = CL/V1, K12=Q2/V1, K21=Q2/V2, K13=Q3/V1, K31=Q3/V3.
TRANS6 — Basic PK Parameters:
ALPHA— \(\alpha\)BETA— \(\beta\)GAMMA— \(\gamma\)K21— rate constant peripheral 1 to centralK31— rate constant peripheral 2 to central- skip
Relationship: K = (ALPHA * BETA * GAMMA)/(K21 * K31), K13 = (P + K31 * K31 - K31 * S - K * K21) / (K21 - K31), K12 = S - K - K13 - K21 - K31, where S = ALPHA + BETA + GAMMA and P = ALPHA * BETA + ALPHA * GAMMA + BETA * GAMMA.
Constraint: ALPHA<K21<BETA<K31<GAMMA or ALPHA<K31<BETA<K21<GAMMA. The roles of ALPHA, BETA, GAMMA, K21, K32, K12, and K13 are symmetric and are exchangeable.
Additional PK Parameters: Standard set for 4 compartments (S1 or SC, S2, S3, S4 or S0, F1-F3, R1-R3, D1-D3, ALAG1-ALAG3, F0 or F4 or FO, XSCALE, MTIME(i)).
Steady-state subroutines: SS11 or SS6. Other required user or Library routines: none.
Notes:
- The Laplacian method is not directly supported with
ADVAN11. The$ESTIMATIONrecord must include theNUMERICALoption withLAPLACIAN.
3.12 C.12 ADVAN12 Three Compartment Linear Model with First Order Absorption
| Compt. No. | Function | Initial Status | On/Off Allowed | Dose Allowed | Default for Dose | Default for Obs. |
|---|---|---|---|---|---|---|
| 1 | Depot | Off | Yes | Yes | Yes | No |
| 2 | Central | On | No | Yes | No | Yes |
| 3 | Peripheral 1 | On | No | Yes | No | No |
| 4 | Peripheral 2 | On | No | Yes | No | No |
| 5 | Output | Off | Yes | No | No | No |
Maximum number of basic PK parameters: 7
TRANS subroutines that may be used:
TRANS1 — Basic PK Parameters:
K— rate constant of eliminationK23— rate constant from central to peripheral 1K32— rate constant from peripheral 1 to centralK24— rate constant from central to peripheral 2K42— rate constant from peripheral 2 to central- skip
Ka— absorption rate constant
TRANS4 — Basic PK Parameters:
CL— clearanceV2— central volumeQ3— intercompartmental clearance (central and periph. 1)V3— peripheral 1 volumeQ4— intercompartmental clearance (central and periph. 2)V4— peripheral 2 volumeKa— absorption rate constant
Relationship: K = CL/V2, K23=Q3/V2, K32=Q3/V3, K24=Q4/V2, K42=Q4/V4, Ka = Ka.
TRANS6 — Basic PK Parameters: ALPHA, BETA, GAMMA, K32, K42, skip, Ka. Relationship: K = (ALPHA * BETA * GAMMA)/(K32 * K42), K24 = (P + K42 * K42 - K42 * S - K * K32) / (K32 - K42), K23 = S - K - K24 - K32 - K42, Ka = Ka. Constraint: ALPHA<K32<BETA<K42<GAMMA or ALPHA<K42<BETA<K32<GAMMA. The roles of ALPHA, BETA, GAMMA, K32, K42, K23, and K24 are symmetric and are exchangeable.
Additional PK Parameters: Standard set for 5 compartments (S1, S2 or SC, S3, S4, S5 or S0, F1-F4, R1-R4, D1-D4, ALAG1-ALAG4, F0 or F5 or FO, XSCALE, MTIME(i)).
Steady-state subroutines: SS12 or SS6. Other required user or Library routines: none.
Notes:
- The Laplacian method is not directly supported with
ADVAN12. The$ESTIMATIONrecord must include theNUMERICALoption withLAPLACIAN.
3.13 C.13 ADVAN13 General Nonlinear Model With Stiff/Nonstiff Equations (NM 71)
Compartment attributes set by subroutine MODEL. Suppose there are \(m\) compartments in the system, including the output compartment.
TRANS subroutines that may be used: TRANS1. Same structure as ADVAN6 for explicit/implicit basic PK parameters.
Additional PK parameters: Same structure as ADVAN5.
Steady-state subroutine: SS6. Other required user or library routines: User: MODEL, DES, TOL; Library: LSODA, FCN1, JAC2.2
Notes:
ADVAN13uses the Livermore solver for ordinary differential equations (LSODA), with automatic method switching for stiff (BDF) and non-stiff (Adams method) problems.- If
SS6is used, Library routines ZSPOW1 and FCN2 are also required. - See Chapter VI Section D.B for specification of relative and absolute tolerance.
- There is a limit on the number of times the differential equations are computed during any one integration over a state interval. The limit is given by
MAXFCNinSIZES. - There is a limit on the maximum number of integration steps. For
ADVAN13, it is 10000. Reserved variableMXSTEPmay be set in$PKto a larger value. - With NONMEM 7.4, the Laplacian Method is supported with
ADVAN13. With NONMEM 7.1 through 7.3, the Laplacian method is not directly supported withADVAN13and the$ESTIMATIONrecord must include theNUMERICALoption withLAPLACIAN.
3.14 C.14 ADVAN14 General Nonlinear Model With Stiff/Nonstiff Equations (NM 74)
Compartment attributes set by subroutine MODEL. Suppose there are \(m\) compartments in the system, including the output compartment.
TRANS subroutines that may be used: TRANS1. Same structure as ADVAN6 for explicit/implicit basic PK parameters.
Additional PK parameters: Same structure as ADVAN5.
Steady-state subroutine: SS6. Other required user or library routines: User: MODEL, DES, TOL; Library: CVODE, FCN1, JAC2.
Notes:
ADVAN14uses CVODES from the LLNL SUNDIALS system for ordinary differential equations and is a descendent of LSODA (ADVAN13). The user may choose to make modifications to..\pr\CVODEU.f90. See..\guides\cvs_guide.pdfand..\guides\cv_guide.pdf.- If
SS6is used, Library routines ZSPOW1 and FCN2 are also required. - See Chapter VI Section D.B for specification of relative and absolute tolerance.
- There is a limit on the number of times the differential equations are computed during any one integration over a state interval. The limit is given by
MAXFCNinSIZES. - There is a limit on the maximum number of integration steps. For
ADVAN14, it is 10000. Reserved variableMXSTEPmay be set in$PKto a larger value. ADVAN14also has a root-finding algorithm. See the comments inCVODEU.f90for its use.
3.15 C.15 ADVAN15 General Nonlinear Model with Equilibrium Compartments (NM 74)
Compartment attributes set by subroutine MODEL. Suppose there are \(m\) compartments in the system, including the output compartment.
TRANS subroutines that may be used: TRANS1. Explicit basic PK parameters: P(n). Implicit basic PK parameters: a $PK-defined variable also used in the $DES or $AES block.
Additional PK parameters: Same structure as ADVAN5.
Steady-state subroutine: SS9. Other required user or library routines: User: MODEL, AES, DES, TOL; Library: ADDA, FCN5, JAC, LEQT22, IDA, RES, ZSPOW2.
Notes:
ADVAN15uses IDA from the LLNL SUNDIALS system for differential-algebraic equations and is a descendent of the LSODI1 (ADVAN9) system. The user may choose to make modifications to parameters in..\pr\IDAU.f90. See..\guides\idas_guide.pdfand..guides\ida_guide.pdf. See INTRODUCTION TO NONMEM 7, section “$SUBROUTINES: Yet Another New Differential Equation Solving Method: IDAS (ADVAN15)”.ADVAN15may be used with a system of differential-algebraic equations specifying the kinetics of a system with equilibrium compartments. It may also be useful when the system consists of only stiff differential equations, and there are no equilibrium compartments.- If
SS9is used, Library routines ZSPOW1, FCN2 and FCN4 are also required. - See Chapter VI Section D.B for specification of relative and absolute tolerance.
- When there are no equilibrium compartments, the AES routine is not called, but a dummy routine may need to be included in the load module if the loader considers an unresolved reference to be a fatal error.
- The Laplacian method is not directly supported with
ADVAN15. The$ESTIMATIONrecord must include theNUMERICALoption withLAPLACIAN. - There is a limit on the number of times the differential equations are computed during any one integration over a state interval. The limit is given by
MAXFCNinSIZES. - There is a limit on the maximum number of integration steps. For
ADVAN15, it is 10000. Reserved variableMXSTEPmay be set in$PKto a larger value. ADVAN15also has a root-finding algorithm. See the comments inIDAU.f90for its use.
3.16 C.16 ADVAN16 General Nonlinear Model with Delay Equations Using RADAR5 (NM 75)
Compartment attributes set by subroutine MODEL. Suppose there are \(m\) compartments in the system, including the output compartment.
TRANS subroutines that may be used: TRANS1. Same structure as ADVAN6 for explicit/implicit basic PK parameters.
Additional PK parameters: Same structure as ADVAN5.
Steady-state subroutine: SS6. Other required user or library routines: User: MODEL, DES, TOL; Library: RADAR5NM, FCN1, JAC2.
Notes:
ADVAN16uses RADAR5 Delay differential equation Solver. It is meant to be used withddexpandto add the additional ODEs inline in the NMTRAN control stream. See INTRODUCTION TO NONMEM 7, “Using the RADAR5 for Delay Differential Equations with no Equilibrium Compartments (ADVAN16) or with Equilbrium Compartments (ADVAN17)”, in “ddexpand Utility Program (NM74)”. See..\guides\manrad5-v2.pdffor details about the parameter settings, and optional routines that may be incorporated. The..\pr\RADAR5U.f90routine offers additional control.- If
SS6is used, Library routines ZSPOW1 and FCN2 are also required. - See Chapter VI Section D.B for specification of relative and absolute tolerance.
- When
ADVAN16is used with delay differential equations, no additional ODEs are added to the control stream. - Some parameters of interest include those controlled by
$SIZESrecord:PAST_SIZE=4000by default, which determines the resolution of the delay equation storage;MAXNRDS=PCby default, but can be set to actual number of delay compartments used to save memory. These parameters can be set with$SIZESin the control stream file:$SIZES MAXNRDS=2 MXST=6000.
3.17 C.17 ADVAN17 General Nonlinear Model with Equilibrium Compartments And Delay Equations Using RADAR5 (NM 75)
Compartment attributes set by subroutine MODEL. Suppose there are \(m\) compartments in the system, including the output compartment.
TRANS subroutines that may be used: TRANS1. Explicit basic PK parameters: P(n). Implicit basic PK parameters: a $PK-defined variable also used in the $AES or $DES block.
Additional PK parameters: Same structure as ADVAN5.
Steady-state subroutine: SS9. Other required user or library routines: User: MODEL, AES, DES, TOL; Library: ZSPOW2, LEQT22, RADAR5NM, RES, JAC, FCN5.
Notes:
ADVAN17may be used with a system of differential-algebraic equations specifying the kinetics of a system with equilibrium compartments.ADVAN17uses RADAR5 Delay differential equation Solver. It is meant to be used withddexpandto add the additional ODEs inline in the NMTRAN control stream.- If
SS9is used, Library routines ZSPOW1, FCN2 and FCN4 are also required. - See Chapter VI Section D.B for specification of relative and absolute tolerance.
- When there are no equilibrium compartments, the AES routine is not called, but a dummy routine may need to be included in the load module if the loader considers an unresolved reference to be a fatal error.
- When
ADVAN17is used with delay differential equations, no additional ODEs are added to the control stream. - Some parameters of interest include those controlled by
$SIZESrecord:MXST=4000by default, which determines the resolution of the delay equation storage;MAXNRDS=PCby default, but can be set to actual number of delay compartments used to save memory. These parameters can be set with$SIZESin the control stream file:$SIZES MAXNRDS=2 PAST_SIZE=4000.
3.18 C.18 ADVAN18 General Nonlinear Model with Delay Equations Using DDE_Solver (NM 75)
Compartment attributes set by subroutine MODEL. Suppose there are \(m\) compartments in the system, including the output compartment.
TRANS subroutines that may be used: TRANS1. Same structure as ADVAN6 for explicit/implicit basic PK parameters.
Additional PK parameters: Same structure as ADVAN5.
Steady-state subroutine: SS6. Other required user or library routines: User: MODEL, DES, TOL; Library: ADDESLV, FCN1, JAC2.
Notes:
ADVAN18uses DDE_Solver Delay differential equation Solver. It is meant to be used withddexpandto add the additional ODEs inline in the NMTRAN control stream. See INTRODUCTION TO NONMEM 7, “Using the DDE_Solver for Delay Differential Equations with no Equilibrium Compartments (ADVAN18)”, in “ddexpand Utility Program (NM74)”. See..\guides\ddes_f90.pdffor details about the parameter settings, and optional routines that may be incorporated. The..\pr\DDESLVU.f90routine offers additional control.- If
SS6is used, Library routines ZSPOW1 and FCN2 are also required. - See Chapter VI Section D.B for specification of relative and absolute tolerance.
ADVAN18/DDE_SOLVER operates with allocatable arrays, and does not require pre-sizing by the user.