model

class pydsol.core.model.DSOLModel(simulator: SimulatorInterface, **kwargs)[source]

Bases: ModelInterface

abstract construct_model()[source]

code to construct the model for each replication

property simulator

return the simulator for this model

property input_parameters

return the input parameter map.

add_parameter(input_parameter: InputParameter)[source]

add an input parameter to the input parameter map.

set_parameter(key: str, value: object)[source]

set the parameter value of an input parameter.

get_parameter(key: str) object[source]

return the value of an input parameter.

output_statistics() Dict[str, StatisticsInterface][source]

return the output statistics map.

add_output_statistic(key: str, statistic: StatisticsInterface)[source]

add an output statistic to the output statistics map.

get_output_statistic(key: str) StatisticsInterface[source]

retrieve an output statistic from the output statistics map.