runSimulations

open override fun runSimulations(evaluationRequest: EvaluationRequest): Map<ModelInputs, Result<SimulationRun>>(source)

Executes multiple simulations based on the provided evaluation request and maps each request to a corresponding SimulationRun. Each request is processed individually, and the results of the simulations are stored as a key-value pair in the returned map. This default implementation runs all the requests sequentially based on the order within the evaluation request.

Return

a map where each key is a ModelInputs object and each value is a Result wrapping either a successful SimulationRun or an exception if the simulation fails for the corresponding evaluation.

Parameters

evaluationRequest

the request for simulation evaluations

Throws

if the input list of evaluations is empty.