simulationResults

fun ReportBuilder.simulationResults(reporter: SimulationReporter, model: Model? = null, confidenceLevel: Double = 0.95)(source)

Appends a complete simulation results report as a sequence of sections inside the current builder scope, in the following order:

  1. Simulation Summary — experiment metadata (when model is non-null) and across-replication statistics half-width summary table

  2. Histograms — one section per histogram (omitted when none exist)

  3. Frequencies — one section per integer-frequency response (omitted when none)

  4. Time-Series Responses — one section per TimeSeriesResponse (omitted when model is null or no time-series responses exist)

Usage:

model.simulate()
val doc = report("Drive-Through Pharmacy") {
simulationResults(model.simulationReporter, model)
}
doc.showInBrowser()
doc.writeMarkdown()

Parameters

reporter

the simulation reporter providing statistics, histograms, and frequency distributions

model

optional model reference; required for metadata and time-series sections; pass null to skip both

confidenceLevel

confidence level for all statistical tables; must be in (0, 1)