modelSimpleControl

Directly influencing a stock to keep it at setpoint value

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

DiagramView
ModelDiagram.png

See also

PID_Control, InputControl

Parameters

TypeNameDefaultDescription
SetpointTypeinitialSetpoint (from Control)Setpoint valid from modelStartTime to startTime
SetpointTypefinalSetpoint (from Control)Final setpoint valid from startTime + duration until the end of the simulation
TimestartTime (from Control)modelSettings.modelStartTimeStart time for change of setpoint
Timeduration (from Control)modelSettings.modelTimeHorizonTime until final setpoint is reached
TimeadjTime1Time constant for stock control
Structural Parameters
BooleanhasRateOutput (from FlowPort)false= true, if the rate is reported via real output connectors
BooleanhasExogenousSetpoint (from Control)false= true, if the setpoint is to be given by an input connector
Timing
TimingChoicestc (from TimedSource)TimingChoices.permanentSelect whether contoll is permanent or timed
TimeonTime (from TimedSource)modelSettings.modelStartTimeTime for component to become effective
TimeoffTime (from TimedSource)modelSettings.modelTimeHorizonTime for component to become ineffective

Connectors

TypeNameDefaultDescription
FlowPortflowPort (from FlowPort)Used to represent stock and flow connections
Connectors.RealInputu (from Control)Setpoint input for controller

Components

TypeNameDefaultDescription
RealOutputy (from FlowPort)Output of current rate of flow
RealOutputy1 (from FlowPort)Output of current rate of flow
ModelSettingsmodelSettings (from TimedSource)

Revisions

  • Introduced in v2.0.0.