User API
Main functions users will use to create and run simulations, monads, samplings, and trials.
Base.run — Method
run(Ts::AbstractVector; kwargs...) -> MMOutputBundle a collection of already-built trials into one Trial (see createTrial(::AbstractVector)) and run it as a single parallelized batch. kwargs are forwarded to run(::AbstractTrial; ...) (including post_processor).
sims = [createTrial(inputs, dv1), createTrial(inputs, dv2)]
run(sims)ModelManager.createTrial — Function
createTrial([method=GridVariation()], inputs::InputFolders, avs::Vector{<:AbstractVariation}=AbstractVariation[];
n_replicates::Integer=1, use_previous::Bool=true)Return an AbstractTrial (Simulation, Monad, or Sampling) from the given inputs and variations.
The method controls how the variation space is sampled (default: GridVariation()). Other options: LHSVariation, SobolVariation, RBDVariation.
Alternate forms (all accept an optional leading method argument)
createTrial(inputs, av::AbstractVariation; ...) # single variation
createTrial(reference::AbstractMonad, avs; ...) # start from a reference monad
createTrial(output_ref::MMOutput{<:AbstractMonad}, avs; ...)ModelManager.createTrial — Method
createTrial(Ts::AbstractVector) -> TrialBundle a collection of already-built trials into a single Trial so they can be launched together — e.g. after accumulating the results of earlier createTrial calls in a vector:
sims = []
push!(sims, createTrial(inputs, dv1))
push!(sims, createTrial(inputs, dv2))
run(sims) # launch all as one batchEach element may be a Simulation, Monad, Sampling, or Trial (a Trial contributes its constituent samplings). The vector may be loosely typed (Vector{Any}); its elements are narrowed to AbstractTrial, with a clear ArgumentError if any element is not one. Already-built trials are wrapped as-is — no new replicates are added.