blockConvexLookupNegative
Convex Lookup with negative slope usually defined for the range [0,∞) passing through the fixpoint (1,1)
Extends from Interfaces.PartialConverters.SISO_Conversion (Partial SISO converter class with input and output conversions for lookup functions).
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:
The function will go through the point (1,1) and (0,y0). The output will be y0 for u ≤ 0. The following graph shows plots for the function for different values of y0:
Notes
y0(intercept) should be greater than 1.- By default (
strict = true) the component will not generate events.
See also
ConvexLookupPositive, ConcaveLookupNegative, ConcaveLookupPositive
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y0 | 2 | Value of y (intercept) when input is zero or less (y0>1) |
| Time Conversion | |||
| Boolean | convertInput (from SISO_Conversion) | false | = true, if the input value is a rate or time variable that needs to be converted |
| Boolean | inputIsRate (from SISO_Conversion) | false | = true, if the input is given in units of time, otherwise it is assumed to be a rate |
| Boolean | convertOutput (from SISO_Conversion) | false | = true, if the output value is a rate or time variable that needs to be converted |
| Boolean | outputIsRate (from SISO_Conversion) | false | = true, if the output is given in units of time, otherwise it is assumed to be a rate |
| TimeBases | timeBaseInput (from SISO_Conversion) | TimeBases.seconds | TimeBase to convert from (default = seconds) |
| TimeBases | timeBaseTableIn (from SISO_Conversion) | modelSettings.modelDisplayTimeBase | TimeBase used for the lookup function input (default = modelDisplayTimeBase) |
| TimeBases | timeBaseTableOut (from SISO_Conversion) | modelSettings.modelDisplayTimeBase | TimeBase assumed for the lookup function output (default = modelSettings.modelDisplayTimeBase) |
| TimeBases | timeBaseOutput (from SISO_Conversion) | TimeBases.seconds | TimeBase used for the output (default = seconds) |
| Advanced | |||
| Boolean | strict | true | = true, if strict limits with noEvent(..) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Connectors.RealInput | u (from SISO) | Input |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from SO) | ||
| ModelSettings | modelSettings (from SISO_Conversion) |
Revisions
- Modified in v2.0.0.