Fit the NLME metamodel
run_metamodel.Rd
Use 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
host
argument 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{
# path to metamodel should be specified
host <- hostParams(
parallelMethod = "LOCAL_MPI",
hostName = "local_mpi",
numCores = 4
)
directoryToRun <- normalizePath("./NLME/")
run_metamodel("metamodel.mmdl", directoryToRun)
} # }