ConcaveLookupPositive

Concave Lookup with positive slope; fixpoints are (0,y0) and (1,1)

Diagram

Information

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

The output y is derived using the formula:

y = y0 + (1 - y0) * u^s

The function will go through the points (1,1) and (0,y0). The output will be y0 for u ≤ 0.

Graph of the Lookup-Function for Different Slopes (y0 = 0)
Graph.png

Notes

  • y0 (intercept) should be within the interval [0,1).

  • s (slope) should be within the interval (0,1].

  • By default (strict = true) the component will not generate events.

See also

ConcaveLookupNegative, ConvexLookupPositiveConvexLookupNegative

Parameters (7)

convertInput

Value: false

Type: Boolean

Description: = true, if the input value is a rate or time variable that needs to be converted

inputIsRate

Value: false

Type: Boolean

Description: = true, if the input is given in units of time, otherwise it is assumed to be a rate

convertOutput

Value: false

Type: Boolean

Description: = true, if the output value is a rate or time variable that needs to be converted

outputIsRate

Value: false

Type: Boolean

Description: = true, if the output is given in units of time, otherwise it is assumed to be a rate

s

Value: 0.5

Type: Real

Description: Slope parameter (0< slope <= 1)

y0

Value: 0

Type: Real

Description: Value of y when input is zero or less (intercept)

strict

Value: true

Type: Boolean

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

Connectors (4)

y

Type: RealOutput

Description: Output signal

u

Type: RealInput

Description: Input

u_c

Type: RealOutput

Description: Input after conversion

y_c

Type: RealOutput

Description: Output before conversion

Components (7)

modelSettings

Type: ModelSettings

Description: Setting important global variables within a model

rateConversionIn

Type: RateConversion

Description: Convert the input (rate) to another time base

noConversionIn

Type: PassThrough

Description: Use input as is

timeConversionIn

Type: TimeConversion

Description: Convert the input to another time base

noConversionOut

Type: PassThrough

Description: Use output as is

rateConversionOut

Type: RateConversion

Description: Convert the output (rate) to 1/s

timeConversionOut

Type: TimeConversion

Description: Convert the output to seconds

Used in Examples (1)

LookupFunctions

BusinessSimulation.Examples

Showcase of lookup-functions

Revisions

  • Modified in v2.0.0.