modelSimpleControl
Extends from BusinessSimulation.Interfaces.PartialCLD.Control (Partial model for control in CLD+ modeling).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
SimpleControl uses a →CloseGap component to arrive (naively) at a flow that is needed to move a connected stock "under management" to a given setpoint, i.e., goal. The strength of the flow, i.e., the speed of the adjustment, is controlled by the parameter adjTime.
The control's setpoint can be provided either by a →RampInput or by an exogenous input u. In case of a ramp input the setpoint will move from initialSetpoint to finalSetpoint in linear fashion for a period given by duration starting at startTime.
The controller by default is active over the whole simulation run, but can be restricted to an on-off period using tc = TimingChoices.period and the parameters onTime and offTime.
Implementation
![]() |
See also
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SetpointType | initialSetpoint (from Control) | Setpoint valid from modelStartTime to startTime | |
| SetpointType | finalSetpoint (from Control) | Final setpoint valid from startTime + duration until the end of the simulation | |
| Time | startTime (from Control) | modelSettings.modelStartTime | Start time for change of setpoint |
| Time | duration (from Control) | modelSettings.modelTimeHorizon | Time until final setpoint is reached |
| Time | adjTime | 1 | Time constant for stock control |
| Structural Parameters | |||
| Boolean | hasRateOutput (from FlowPort) | false | = true, if the rate is reported via real output connectors |
| Boolean | hasExogenousSetpoint (from Control) | false | = true, if the setpoint is to be given by an input connector |
| Timing | |||
| TimingChoices | tc (from TimedSource) | TimingChoices.permanent | Select whether contoll is permanent or timed |
| Time | onTime (from TimedSource) | modelSettings.modelStartTime | Time for component to become effective |
| Time | offTime (from TimedSource) | modelSettings.modelTimeHorizon | Time for component to become ineffective |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| FlowPort | flowPort (from FlowPort) | Used to represent stock and flow connections | |
| Connectors.RealInput | u (from Control) | Setpoint input for controller |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from FlowPort) | Output of current rate of flow | |
| RealOutput | y1 (from FlowPort) | Output of current rate of flow | |
| ModelSettings | modelSettings (from TimedSource) |
Revisions
- Introduced in v2.0.0.
