modelModelSettings

Setting important global variables within a model

Extends from Icons.ConverterName (Icon for converter elements).

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

This class should be placed in the top level scope of any simulation model. It will automatically be assigned the prefix inner as it provides global parameters for the model.

Parameters

TypeNameDefaultDescription
Model Time Settings
TimeBasesmodelDisplayTimeBaseTimeBases.secondsThe model's time base with regard to input and output
TimemodelTimeHorizon10The time horizon for the model (i.e., stopTime - startTime)
Timedt0.25Smallest possible interval of time for compatibility with conventional fixed-step system dynamics models
TimesamplingPerioddt/4Default sampling period for discrete model components (should be ≤ dt/4)
Initialization
TimemodelStartTimeStart time of the model (will be automatically determined)
TimemodelStopTimeStop time of the model (will be determined from startTime and modelTimeHorizon)
StringmodelDisplayTimeUnitBusinessSimulation.Constants.timeBaseUnits[modelDisplayTimeBase]Unit string according to modelDisplayTimeBase choice
Model Input Settings
Booleangamingfalse= true, if gaming mode is to be activated
Data Sources
StringlookupDataFileURI"LookupData.txt"URI for the lookup data file
StringexogenousDataFileURI"ExogenousData.txt"URI for the exogenous data file
Advanced
InitializationOptionsinitBusinessSimulation.Types.InitializationOptions.FixedValueProvide InitializationOptions (Free, FixedValue, SteadyState) as global default

Revisions

  • Structural parameters, e.g., modelDisplayTimeBase, changed to constant variability in v2.0.0.

  • Added Evaluate = true to dt to make this a structrual parameter in v2.1.0.