ModelSettings

Setting important global variables within a model

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 (6)

modelTimeHorizon

Value: 10

Type: Time (s)

Description: The time horizon for the model (i.e., stopTime - startTime)

modelStartTime

Value:

Type: Time (s)

Description: Start time of the model (will be automatically determined)

modelStopTime

Value:

Type: Time (s)

Description: Stop time of the model (will be determined from startTime and modelTimeHorizon)

dt

Value: 0.25

Type: Time (s)

Description: Smallest possible interval of time for compatibility with conventional fixed-step system dynamics models

samplingPeriod

Value: dt / 4

Type: Time (s)

Description: Default sampling period for discrete model components (should be ≤ dt/4)

init

Value: BusinessSimulation.Types.InitializationOptions.FixedValue

Type: InitializationOptions

Description: Provide InitializationOptions (Free, FixedValue, SteadyState) as global default

Used in Examples (13)

SimpleProductionChain

BusinessSimulation.Examples

A first example

SimpleProductionChainII

BusinessSimulation.Examples

Extending the first example to include replacement purchases

SimpleProductionChainIII

BusinessSimulation.Examples

Further extending the first example to explain new product diffusion

SIR

BusinessSimulation.Examples

Classical epidemic model by Kermack and McKendrick

LoveHateDynamics

BusinessSimulation.Examples

Romeo and Juliet model as introduced by Strogatz

LotkaVolterraSystems

BusinessSimulation.Examples

Predator-prey dynamics

LotkaVolterraEquationsRevisited

BusinessSimulation.Examples

Predator-prey dynamics with an additional predator

ManagingEmployment

BusinessSimulation.Examples

Human resource planning

AssemblyLine

BusinessSimulation.Examples

Modeling a production process

LookupFunctions

BusinessSimulation.Examples

Showcase of lookup-functions

HealTheWorld

BusinessSimulation.Examples

Causal loop model of world dynamics

SoftwareReleaseProject

BusinessSimulation.Examples

Causal loop example given by van Zijderveld (MARVEL)

DelayInformation

BusinessSimulation.Converters.DiscreteDelay

Pipeline information delay with awareness

Used in Components (42)

InputControl

BusinessSimulation.CausalLoop

Directly set information using a ramp input profile

SimpleControl

BusinessSimulation.CausalLoop

Directly influencing a stock to keep it at setpoint value

PID_Control

BusinessSimulation.CausalLoop

Directly influencing a stock to keep it at setpoint value

ElasticityDelayed

BusinessSimulation.CausalLoop

Process driven by elasticity and additional exponential delay

ProportionalityDelayed

BusinessSimulation.CausalLoop

Process driven by proportionality with additional exponential delay

ForceToInputValue

BusinessSimulation.CausalLoop

Flow is obtained as closing the gap to input value

ForceToStockValue

BusinessSimulation.CausalLoop

Flow is obtained as closing the gap to input stock value

ExponentialDelay

BusinessSimulation.CausalLoop

Exponential delay of input flow

PipelineDelay

BusinessSimulation.CausalLoop

Fixed or pure delay of input flow

Lookup_TableOnFile

BusinessSimulation.CausalLoop

Table-based lookup given on file

DelayN

BusinessSimulation.Stocks

Material delay of n-th Order

SimpleConveyor

BusinessSimulation.Stocks

Conveyor (aka pipeline delay) with constant delay time and no leakage

Conveyor

BusinessSimulation.Stocks

Conveyor delay (aka pipeline ~) with variable delay time

PureDelay

BusinessSimulation.Stocks

Delay the flow of material for a fixed (but variable) delay time

Oven

BusinessSimulation.Stocks

Batch processing of inflow (aka batch delay)

DelayFixed

BusinessSimulation.Converters.DiscreteDelay

Pipeline information delay without awareness

Sampler

BusinessSimulation.Converters.DiscreteDelay

Ideal periodic sampler of input

SampleIfTrue

BusinessSimulation.Converters.DiscreteDelay

Samples input, if Boolean trigger is true

Smooth

BusinessSimulation.Converters.DiscreteDelay

First-order exponential smooth

SmoothN

BusinessSimulation.Converters.DiscreteDelay

N-th order exponential smooth with constant averaging time

AsymmetricSmooth

BusinessSimulation.Converters.DiscreteDelay

A smooth with different delay times for positive and negative changes

AsymmetricSmoothN

BusinessSimulation.Converters.DiscreteDelay

Higher order smooth with different delay times for positive and negative changes

TableFunction

BusinessSimulation.Converters.Lookup

Table function defined by external data on file using Modelica's CombiTable format

TableFunctionVector

BusinessSimulation.Converters.Lookup

Table function for vector input and output using Modelica's CombiTable format

ClipProcessTime

BusinessSimulation.Converters

Limit any time input to be no smaller than dt

GameInput

BusinessSimulation.Converters

Enable user input, if gaming mode is activated

RateConversion

BusinessSimulation.Converters

Converts a rate given per time base A to a rate per time base B

TimeConversion

BusinessSimulation.Converters

Converts a time signal from time base A to time base B

ExogenousData

BusinessSimulation.InformationSources

Reading external data from a file using Modelica's CombiTimeTable format (MCTT)

TimeInput

BusinessSimulation.InformationSources

Clock to provide time-signal

TimeInputConverted

BusinessSimulation.InformationSources

Clock to provide time-signal in a different time base

Trend

BusinessSimulation.MoleculesOfStructure.InformationProcessing

Calculating a fractional rate of change to be used in forecasting

CloseGap

BusinessSimulation.MoleculesOfStructure.Policy

Determine the rate of flow (action) to close a gap between a quantity and its desired value

FirstOrderStockAdjustment

BusinessSimulation.MoleculesOfStructure.Policy

Maintain a stock at a desired level

EffectOfFatigue

BusinessSimulation.MoleculesOfStructure.Blocks

Modeling the influence of excessive workloads on productivity or quality

ExperienceCurve

BusinessSimulation.MoleculesOfStructure.Blocks

Unit cost degression due to gaining experience

Account

BusinessSimulation.MoleculesOfStructure.Incubators

Basic model of an account with optional interest

Collector

BusinessSimulation.MoleculesOfStructure.Incubators

A reservoir that aggregates multiple stock ports

Reservoir

BusinessSimulation.MoleculesOfStructure.Transceivers

A single stock drained by an outflow at a given rate

SISO_Conversion

BusinessSimulation.Interfaces.PartialConverters

Partial SISO converter class with input and output conversions for lookup functions

BasicStock

BusinessSimulation.Interfaces.PartialStocks

Unrestricted reservoir to store information

TimedSource

BusinessSimulation.Interfaces.PartialCLD

Partial class for flow port with timing

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.