How to Increase Maximum NO. of Evaluations of Differential Equation in NONMEM 7

6 messages 6 people Latest: Jun 23, 2011
Hi, I am using ADVAN 6 to do some PKPD modeling and got this error message: NUMERICAL DIFFICULTIES WITH INTEGRATION ROUTINE. MAXIMUM NO. OF EVALUATIONS OF DIFFERENTIAL EQUATIONS, 1000000, EXCEEDED. I know in NONMEM 6 you may use following code to increase maximum number of integration of differential equation: "FIRST " COMMON /PRCOMG/ IDUM1,IDUM2,IMAX,IDUM4,IDUM5 " INTEGER IDUM1,IDUM2,IMAX,IDUM4,IDUM5 " IMAX=100000000 But in NONMEM 7 it gave error message: (WARNING 113) VERBATIM CODE CONTAINS "COMMON". IF THIS IS NOT A USER-DEFINED COMMON, IT SHOULD BE REPLACED BY THE APPROPRIATE MODULE. CREATING MUMODEL ROUTINE... Thus, how can I increase maximum number of integration of differential equation in NONMEM 7? Thank you. lili
Dear lili, You can try following code: " FIRST " USE PRCOM_INT,ONLY:MITER,METH,IMAX,ISTFLG,INTFLG " MAIN " IMAX=10000000000000 Hope it helps. Wenjun Ni, Ph.D. Division of Pharmaceutics College of Pharmacy The Ohio State University 500 W 12th Ave Columbus, OH 43210
Quoted reply history
On Wed, Jun 22, 2011 at 4:17 PM, Li Li <[email protected]> wrote: > Hi, > > I am using ADVAN 6 to do some PKPD modeling and got this error message: > NUMERICAL DIFFICULTIES WITH INTEGRATION > ROUTINE. > MAXIMUM NO. OF EVALUATIONS OF DIFFERENTIAL EQUATIONS, 1000000, > EXCEEDED. > > I know in NONMEM 6 you may use following code to increase maximum number of > integration of differential equation: > "FIRST > " COMMON /PRCOMG/ IDUM1,IDUM2,IMAX,IDUM4,IDUM5 > " INTEGER IDUM1,IDUM2,IMAX,IDUM4,IDUM5 > " IMAX=100000000 > But in NONMEM 7 it gave error message: > (WARNING 113) VERBATIM CODE CONTAINS "COMMON". IF THIS IS NOT A > USER-DEFINED COMMON, IT SHOULD BE REPLACED BY THE APPROPRIATE MODULE. > CREATING MUMODEL ROUTINE... > > Thus, how can I increase maximum number of integration of differential > equation in NONMEM 7? > > Thank you. > > lili
Li Li, If this is the model that you have described previously, you may want to try ADVAN8 or ADVAN13. With the cusps that the on/off nature of your rate constant a stiff diff. eq. solver may perform better. best regards, Luann Phillips Director PK/PD Cognigen Corporation Li Li wrote: > Hi, > > I am using ADVAN 6 to do some PKPD modeling and got this error message: NUMERICAL DIFFICULTIES WITH INTEGRATION ROUTINE. MAXIMUM NO. OF EVALUATIONS OF DIFFERENTIAL EQUATIONS, 1000000, EXCEEDED. I know in NONMEM 6 you may use following code to increase maximum number of integration of differential equation: > > "FIRST > " COMMON /PRCOMG/ IDUM1,IDUM2,IMAX,IDUM4,IDUM5 > " INTEGER IDUM1,IDUM2,IMAX,IDUM4,IDUM5 > " IMAX=100000000 > But in NONMEM 7 it gave error message: > (WARNING 113) VERBATIM CODE CONTAINS "COMMON". IF THIS IS NOT A > USER-DEFINED COMMON, IT SHOULD BE REPLACED BY THE APPROPRIATE MODULE. > CREATING MUMODEL ROUTINE... > > Thus, how can I increase maximum number of integration of differential equation in NONMEM 7? Thank you. lili
Hi Li, before you increase the number of maximal evaluations you should try the ADVAN8 or ADVAN13 solvers. It is typically a sign for a stiff differential equation if a high number of steps is needed to meet the specified integration tolerance. ADVAN8 is using more complicated numerical methods to solve the ODE. For a non-stiff ODE those additional efforts lead to longer run times with no additional benefits. For a stiff ODE these efforts lead to a quicker solution. ADVAN13 is a hybrid version between stiff and non-stiff solver which tries to determine automatically what method is most adapted. Hope that help Sebastian Sebastian Ueckert, MSc, PhD student ----------------------------------------------- Pharmacometrics Research Group, Department of Pharmaceutical Biosciences, Uppsala University ----------------------------------------------- P.O. Box 591 SE-751 24 Uppsala Sweden ----------------------------------------------- [email protected] ----------------------------------------------- Work: +46-(0)18-471 4437
Quoted reply history
On Wed, Jun 22, 2011 at 10:17 PM, Li Li <[email protected]> wrote: > Hi, > > I am using ADVAN 6 to do some PKPD modeling and got this error message: > NUMERICAL DIFFICULTIES WITH INTEGRATION > ROUTINE. > > MAXIMUM NO. OF EVALUATIONS OF DIFFERENTIAL EQUATIONS, 1000000, > EXCEEDED. > > I know in NONMEM 6 you may use following code to increase maximum number of > integration of differential equation: > "FIRST > " COMMON /PRCOMG/ IDUM1,IDUM2,IMAX,IDUM4,IDUM5 > " INTEGER IDUM1,IDUM2,IMAX,IDUM4,IDUM5 > " IMAX=100000000 > But in NONMEM 7 it gave error message: > (WARNING 113) VERBATIM CODE CONTAINS "COMMON". IF THIS IS NOT A > USER-DEFINED COMMON, IT SHOULD BE REPLACED BY THE APPROPRIATE MODULE. > CREATING MUMODEL ROUTINE... > > Thus, how can I increase maximum number of integration of differential > equation in NONMEM 7? > > Thank you. > > lili >
Li Li, In addition you may try ADVAN9, though ADVAN13 may have advantages over ADVAN9. Matt.
Quoted reply history
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Luann Phillips Sent: Wednesday, June 22, 2011 4:44 PM To: Li Li Cc: [email protected] Subject: Re: [NMusers] How to Increase Maximum NO. of Evaluations of Differential Equation in NONMEM 7 Li Li, If this is the model that you have described previously, you may want to try ADVAN8 or ADVAN13. With the cusps that the on/off nature of your rate constant a stiff diff. eq. solver may perform better. best regards, Luann Phillips Director PK/PD Cognigen Corporation Li Li wrote: > Hi, > > I am using ADVAN 6 to do some PKPD modeling and got this error message: > NUMERICAL DIFFICULTIES WITH INTEGRATION > ROUTINE. > > MAXIMUM NO. OF EVALUATIONS OF DIFFERENTIAL EQUATIONS, 1000000, > EXCEEDED. > > I know in NONMEM 6 you may use following code to increase maximum number > of integration of differential equation: > "FIRST > " COMMON /PRCOMG/ IDUM1,IDUM2,IMAX,IDUM4,IDUM5 > " INTEGER IDUM1,IDUM2,IMAX,IDUM4,IDUM5 > " IMAX=100000000 > But in NONMEM 7 it gave error message: > (WARNING 113) VERBATIM CODE CONTAINS "COMMON". IF THIS IS NOT A > USER-DEFINED COMMON, IT SHOULD BE REPLACED BY THE APPROPRIATE MODULE. > CREATING MUMODEL ROUTINE... > > Thus, how can I increase maximum number of integration of differential > equation in NONMEM 7? > > Thank you. > > lili This e-mail (including any attachments) is confidential and may be legally privileged. If you are not an intended recipient or an authorized representative of an intended recipient, you are prohibited from using, copying or distributing the information in this e-mail or its attachments. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete all copies of this message and any attachments. Thank you.
If you are using NONMEM 7.2, IMAX can be increased by setting MAXFCN, by inserting as the first executable line in the control stream file: $SIZES MAXFCN=1000000000 Keep in mind that as a 4 byte integer, MAXFCN cannot exceed 2**31=2147483648. Robert J. Bauer, Ph.D. Vice President, Pharmacometrics ICON Development Solutions Tel: (215) 616-6428 Mob: (925) 286-0769 Email: [email protected] Web: www.icondevsolutions.com
Quoted reply history
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Wenjun Sent: Wednesday, June 22, 2011 4:53 PM To: Li Li Cc: [email protected] Subject: Re: [NMusers] How to Increase Maximum NO. of Evaluations of Differential Equation in NONMEM 7 Dear lili, You can try following code: " FIRST " USE PRCOM_INT,ONLY:MITER,METH,IMAX,ISTFLG,INTFLG " MAIN " IMAX=10000000000000 Hope it helps. Wenjun Ni, Ph.D. Division of Pharmaceutics College of Pharmacy The Ohio State University 500 W 12th Ave Columbus, OH 43210 On Wed, Jun 22, 2011 at 4:17 PM, Li Li <[email protected]> wrote: > Hi, > > I am using ADVAN 6 to do some PKPD modeling and got this error message: > NUMERICAL DIFFICULTIES WITH INTEGRATION > ROUTINE. > MAXIMUM NO. OF EVALUATIONS OF DIFFERENTIAL EQUATIONS, 1000000, > EXCEEDED. > > I know in NONMEM 6 you may use following code to increase maximum number of > integration of differential equation: > "FIRST > " COMMON /PRCOMG/ IDUM1,IDUM2,IMAX,IDUM4,IDUM5 > " INTEGER IDUM1,IDUM2,IMAX,IDUM4,IDUM5 > " IMAX=100000000 > But in NONMEM 7 it gave error message: > (WARNING 113) VERBATIM CODE CONTAINS "COMMON". IF THIS IS NOT A > USER-DEFINED COMMON, IT SHOULD BE REPLACED BY THE APPROPRIATE MODULE. > CREATING MUMODEL ROUTINE... > > Thus, how can I increase maximum number of integration of differential > equation in NONMEM 7? > > Thank you. > > lili