ModelRunTemplate

@Serializable
data class ModelRunTemplate(val modelReference: ModelReference, val modelConfiguration: Map<String, String>? = null, val runParameters: ExperimentRunParameters, val controls: ModelControlsExport = ModelControlsExport(modelName = ""), val rvOverrides: List<RVParameterOverride> = emptyList())(source)

Serializable model-construction template for app-layer workflows that need configured model instances without depending on a full RunConfiguration.

This type contains only persisted data. It does not hold a live ksl.simulation.ModelBuilderIfc or ksl.simulation.ModelProviderIfc. Execution code should resolve this template into an internal configured ksl.simulation.ModelBuilderIfc before handing work to lower-level simulation or optimization APIs.

ModelRunTemplate is intentionally narrower than RunConfiguration. It captures the reusable baseline model-building pieces needed by workflows such as simulation optimization, where the model source and fixed baseline configuration are separate from the optimization problem and solver settings.

Constructors

Link copied to clipboard
constructor(modelReference: ModelReference, modelConfiguration: Map<String, String>? = null, runParameters: ExperimentRunParameters, controls: ModelControlsExport = ModelControlsExport(modelName = ""), rvOverrides: List<RVParameterOverride> = emptyList())

Properties

Link copied to clipboard

fixed model control overrides applied after the model is built. An empty export leaves the model's control defaults unchanged.

Link copied to clipboard

optional builder-level string configuration passed into ksl.simulation.ModelBuilderIfc.build. This is distinct from controls and RV overrides because some models may need structured build-time configuration before model elements exist.

Link copied to clipboard

serializable pointer to the model source. This is either ModelReference.ByProviderId or ModelReference.ByJar, so persisted documents do not contain live builder objects.

Link copied to clipboard

baseline simulation experiment settings for models built from this template. A configured builder should use these as defaults while allowing call-site ksl.simulation.ExperimentRunParametersIfc values to override them for a specific build.

Link copied to clipboard

fixed random-variable parameter overrides applied after controls. An empty list leaves the model's random variable parameter defaults unchanged.