Skip to main content
Skip table of contents

runSimulation

Run the simulation task.

Usage

R
runSimulation()

Details

As when clicking on SIMULATION in Simulx GUI, simulated values are saved as text files in a result folder which is located next to the project file when calling saveProject.

To get the sampled parameters and simulated outputs as data frames, use getSimulationResults.

To post-process the results by computing outcomes and endpoints, use runEndpoints.

To run both the simulation and endpoint tasks, use setScenario and runScenario.

To get some output in the console showing the status of the simulation, use setConsoleMode.

runSimulation does not generate charts data in the result folder even if the preference exportchartsdata is TRUE. To generate charts data in the result folder at run, use runScenario instead.

Examples

R
  initializeLixoftConnectors("simulx")
  project_name <- file.path(getDemoPath(), "1.overview", "importFromMonolix_clinicalTrial.smlx")
  loadProject(project_name)
  setConsoleMode("basic")
  runSimulation()
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.