ZeroIfNegative

The input will be set to zero, if it is negative

Information

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

The output y will be identical with the input u whenever u is greater than or equal to zero. It will be zero in all other cases.

Implementation

In the default setting (strict = false) in the Advanced tab, nonnegativity will be strictly ovserved:

  if strict then
    y = noEvent(if u < 0 then 0 else u);
  else
    y = smooth(0, if u < 0 then 0 else u);
  end if;

See also

ClipClipProcessTime

Parameters (1)

strict

Value: true

Type: Boolean

Description: = true, if strict limits with noEvent(..)

Connectors (2)

y

Type: RealOutput

Description: Output signal

u

Type: RealInput

Description: Input

Used in Components (4)

Oven

BusinessSimulation.Stocks

Batch processing of inflow (aka batch delay)

SoftMin

BusinessSimulation.Converters

Gradual approach of a ceiling that cannot be exceeded

ResidenceTime

BusinessSimulation.MoleculesOfStructure.InformationProcessing

Calculate average time of residence or time needed for completion

Account

BusinessSimulation.MoleculesOfStructure.Incubators

Basic model of an account with optional interest

Revisions

  • updated in v2.0.0