Running simulation in command line mode

Hi,

I am trying to run simulations from the command line. My final model (.MDL) is a simple one compartment (following) model. I would like to run a simulation with a different dose level from the command line. so I created a dummy table for simulation as .csv file. Now, the question is how I should change the following script (PML) in the model file below to be able to simulate the new dose by command and receive the sim table as an output?

test(){
cfMicro(A1, Cl / V, first = (Aa = Ka))
dosepoint(Aa)
C = A1 / V
error(CEps = 28.5596588388192)
observe(CObs = C + CEps * sqrt(1 + C^2 * (CMultStdev/sigma())^2))
stparm(Ka = tvKa * exp(nKa))
stparm(V = tvV * exp(nV))
stparm(Cl = tvCl * exp(nCl))
stparm(CMultStdev = tvCMultStdev)
fixef(tvKa = c(, 0.60176277128161, ))
fixef(tvV = c(, 0.0144284881142417, ))
fixef(tvCl = c(, 0.0299291076746268, ))
fixef(tvCMultStdev = c(, 0.458258322029198, ))
ranef(diag(nV, nCl, nKa) = c(1.0100196, 0.92041129, 0.9488175))
}

Best
Amir

Hi Amir,

I have attached a project file with a sample simulation. Also, there are a few youtube links that could be of use to you.

Forum_A_sim.phxproj (444 KB)

Hi,

I am trying to run simulations from the command line. My final model (.MDL) is a simple one compartment (following) model. I would like to run a simulation with a different dose level from the command line. so I created a dummy table for simulation as .csv file. Now, the question is how I should change the following script (PML) in the model file below to be able to simulate the new dose by command and receive the sim table as an output?

test(){
cfMicro(A1, Cl / V, first = (Aa = Ka))
dosepoint(Aa)
C = A1 / V
error(CEps = 28.5596588388192)
observe(CObs = C + CEps * sqrt(1 + C^2 * (CMultStdev/sigma())^2))
stparm(Ka = tvKa * exp(nKa))
stparm(V = tvV * exp(nV))
stparm(Cl = tvCl * exp(nCl))
stparm(CMultStdev = tvCMultStdev)
fixef(tvKa = c(, 0.60176277128161, ))
fixef(tvV = c(, 0.0144284881142417, ))
fixef(tvCl = c(, 0.0299291076746268, ))
fixef(tvCMultStdev = c(, 0.458258322029198, ))
ranef(diag(nV, nCl, nKa) = c(1.0100196, 0.92041129, 0.9488175))
}

Best
Amir

Hi Cradhakr,

Thanks for your reply. I think I should elaborate a bit on my work. I built a popPk for L-dopa. Now, what I am trying to do, is making a platform (such as a website) for physicians to be able to see the simulated PK profile of L-Dopa with different dose levels and various dosing interval. This required that I have four components to be able to run simulations from a command line. which I have them.

Certara Phoenix Assistance

I know how to build this website connecting that to the command line to run simulations.

The only problem that I have is what I should do in the PML code of my .MDL file to be able to run simulations through command line (without needing to open software).

I hope I could express my idea more clearly.

p.s. the youtube links are not accessible. Could you please check their address?

Hi,

I have to check with my technical team on this and get back to you.

Thanks

Mouli