I need to start leveraging the PML language to properly setup my model. I write up my equations with concentration. However, when WinNonlin converts my model the equations use amounts. I did a small test comparing the abundance formulation with my equations noticed when i convert my graphical model to a text version.
I am getting very different answers between the too models. Now the difference between the rate constants can be attributed to a difference in units. The volume should be the same though and this is what has me alarmed.
I am not sure handles the number for the error term (graphics vs text ), but that is really the only thing I can think of that could drive the difference.
The reason why I want to write it in this fashion is I am looking to do something similar to the PML school lesson on metabolites. They use MM kinetics which uses concentration. This should be ok but I am a bit concerned about the difference answers using the two modes.
Slightly modified version of the file with more experimentation. I have three models,
The original graphical model
The PML version where I just hit the button and run ( So it has deriv (A1= - k*A1 etc…
The PML version where I switch the amounts to concentrations (A2 → C2 which is how the PML school programed that one lesson)
Models 1 and 2 are the same but 3 is different. All that was changed was switching from amount based RHS to a concentration based RHS. Clearly I break something but it is not intuitive to me where I go wrong.
Make this change and you will see the models produce the same results
It might be easier to read if you parameterize your whole model into either microconstants or clearance/volume, and not mix the 2 but that is up to the modelers preference!