Fit the NLME metamodel
run_metamodel.RdUse for simple model execution given information contained in mmdl file.
Arguments
- mmdlfile
The metamodel file path; relative paths are acceptable.
- directoryToRun
The directory where the final results should be stored If
missing, the mmdlfile base directory is used.- nlme_hostPath
json file with host definition for model execution. Generated by Pirana application. Consider using
hostargument when running from R.- host
NlmeParallelHost()class instance.
Value
the results of fitmodel() run are returned if singular ESTARGS block is
provided; otherwise a list of fitmodel() and simmodel() results
are returned.
Details
If both nlme_hostPath and host specified, the former is used.
If nlme_hostPath is missing, host is used instead.
If both are missing, MPI local host with 4 threads is used for simple estimation
mode, multicore host is used for the others.
Multiple ESTARGS/SIMARGS are supported, they are applied for the model sequentially, the results of previous estimation are applied to the model before the next one. ESTARGS queue is executed first, SIMARGS queue is executed the second.
Examples
if (FALSE) { # \dontrun{
mmdlfile <- system.file("extdata/mmdlNoTime/test.mmdl",
package = "Certara.RsNLME",
mustWork = TRUE)
directoryToRun <- file.path(tempdir(TRUE), "MmdlNoTimeTest")
# using default host
mmdlResults <- run_metamodel(mmdlfile = mmdlfile,
directoryToRun = directoryToRun)
} # }