Jump to content


Photo

I am a novice, I have questions about WNL want to consult!

WNL Multiple absorption routes

  • Please log in to reply
7 replies to this topic

#1 0521

0521

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts

Posted 14 February 2017 - 06:47 AM

Hi,

I saw an example on my network, I wanted to try to run myself, but I found that I failed, examples are as follows:

Time(h) Concentration(ug/l) 0.1000 25.00 0.1500 35.00 0.2500 42.00 0.5000 48.00 0.7500 46.50 0.8000 47.00 1.0000 46.00 1.2500 44.50 1.5000 45.00 2.0000 42.10 3.0000 63.00 4.0000 70.15 5.0000 72.00 6.0000 65.00 8.0000 55.00 12.0000 39.00 24.0000 14.00

 

Dose ug 2000

 

 

Winnonlin 6.3 ASCII Multiple absorption routes data

model

commands

nfun 1

nder 1

npar 6

pnam 'KA1','KA2','V','K','FRCT','TLAG'

ncon 1

end

temp

T=X

DOSE1=CON(1)

END

START

Z(1)= 0

END

DIFF

INPT1=DOSE1*FRCT*KA1*EXP(-KA1*T)

IF T<tlag then="">

INPT2= 0

ELSE

INPT2= DOSE1*(1-FRCT)*KA2*EXP(-KA2*(T-TLAG))

END IF

DZ(1)=(INPT1+INPT2)/V-K*Z(1)

END

FUNC 1

F=Z(1)

END

EOM

 

Error message

“There was an error while executing Workflow.ASCII failed to fit model"

 

I am using version 6.4

 

I have a look at the help file, but there seems to be only one document associated with him "Phoenix WinNonlin 6.4 User's Guide.pdf"
Chapter 16
 
I know WNL has been eliminated, but I still want to know!


#2 Simon Davis

Simon Davis

    Advanced Member

  • Administrators
  • 1,318 posts

Posted 14 February 2017 - 09:43 AM

Hi, did you supply initial estimates?  It woud be much easier to debug if you attach the project or at least the core output and the warnings and errors files.

Attached Thumbnails

  • no_init_est.jpg


#3 Simon Davis

Simon Davis

    Advanced Member

  • Administrators
  • 1,318 posts

Posted 14 February 2017 - 01:17 PM

Also - as you realise the WNL ASCII code is now considered obsolete as almost all models are easier to write (and debug) in PML, did you look at the other posts on this topic eg.?

 

https://support.cert...-model-builder/

 

 Simon.



#4 Simon Davis

Simon Davis

    Advanced Member

  • Administrators
  • 1,318 posts

Posted 14 February 2017 - 01:37 PM

Sorry I also moved the thread to the M&S forum that seemed more appropriate, here is your data using a the PML code I referenced above.

 

 Simon

Attached Files



#5 0521

0521

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts

Posted 15 February 2017 - 04:06 AM

Dear Simon Davis,

 

Thank you for your reply,
 
I downloaded the file you gave, I run "ASCII" system error, run "Model" no error (I did not modify your file anywhere).
Error message:
"There was an error while executing Workflow.ASCII failed to fit model"
 
I do not know how to paste the picture up, I put my related interface screenshots on the Excel document upload up, I hope you can help me solve this problem.

 

Beast

0521

Attached Files



#6 Simon Davis

Simon Davis

    Advanced Member

  • Administrators
  • 1,318 posts

Posted 15 February 2017 - 05:20 AM

Hi 0521,

    Sorry perhaps I should be clearer, I took your ascii code and tried to run it too without success, it is a while since I worked with this and as I did not spot anything obvious (I don't have a lot of time this week to debug it).  That is why I gave you an example in PML that IS working and I recommend you use that unless someone else on the forum can debug your ascii code.

 

The PML example is annotated and you could additionaly watch the free webinar I linked to previously; if you don't 'speak' ASCII now, there is little sense in trying to learn this now obsolete function in my opinion, when the PML can easily be written with the much more intuitive graphical model builder

 

If you do want to debug, then look in the core output and you will see where it thinks the issue is;

 

 BEGI
    10: IF T<TLAG THEN="">INPT2= 0
  *** ERROR 10001 *** INVALID STATEMENT.
  PROGRAM TERMINATED.
 

The empty quotes doesn't look right to me either but not sure what is meant to be there

   Simon.

Attached Thumbnails

  • graphical.jpg

Edited by Simon Davis, 15 February 2017 - 05:35 AM.


#7 Simon Davis

Simon Davis

    Advanced Member

  • Administrators
  • 1,318 posts

Posted 15 February 2017 - 06:43 AM

0521 - I dusted off my old Gabrielsson and Weiner to check the code and indeed that line was wrong, but there were also message about not reading parameter names correctly, which in turn meant that your initial estimates were not read correctly.

 

It took quite a while of fiddling and even now I'm still not sure if it was an extra space or the lack of one that caused the problem!  However it is working now, please look to learn PML as soon as you can!

 

  Simon

 

https://books.apotek...plications-ed-5

 

 

https://certara-trai...ic-Schedule.pdf

Attached Files


Edited by Simon Davis, 15 February 2017 - 03:45 PM.


#8 0521

0521

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts

Posted 16 February 2017 - 08:28 AM

Thank you very much, I will learn PML! :) :) :) :) :) :D







Also tagged with one or more of these keywords: WNL, Multiple absorption routes

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users