DesignedExperiment

constructor(name: String, model: Model, twoLevelSettings: Map<TwoLevelFactor, String>, design: TwoLevelFactorialDesign, kslDb: KSLDatabase = KSLDatabase("${name}.db".replace(" ", "_"), model.outputDirectory.dbDir))

Parameters

name

the name of the experiment for saving simulation results

model

The model to simulate.

twoLevelSettings

A mapping between each factor and a string representing the name of the control or parameter to associate with the factor.

design

The design that will be simulated. The factors specified in the design must be contained in the factor settings.

kslDb

a KSLDatabase that will hold the data from the experiment.


constructor(name: String, modelCreator: () -> Model, factorSettings: Map<Factor, String>, design: TwoLevelFactorialDesign)

Parameters

name

the name of the experiment for saving simulation results

modelCreator

A function designed to create the model

factorSettings

A mapping between each factor and a string representing the name of the control or parameter to associate with the factor.

design

The design that will be simulated. The factors specified in the design must be contained in the factor settings.


constructor(name: String, model: Model, factorSettings: Map<Factor, String>, design: ExperimentalDesignIfc, kslDb: KSLDatabase = KSLDatabase("${name}.db".replace(" ", "_"), model.outputDirectory.dbDir))

Parameters

name

the name of the experiment for saving simulation results

model

The model to simulate.

factorSettings

A mapping between each factor and a string representing the name of the control or parameter to associate with the factor.

design

The design that will be simulated. The factors specified in the design must be contained in the factor settings.

kslDb

a KSLDatabase that will hold the data from the experiment.