modelSoftMax
Gradual approach of a floor below which output can never fall
Extends from Interfaces.PartialConverters.SISO (Converter with single input and single output).
Information
The output y is obtained as a smooth maximum with regard to the inputs u and u_min:
The following graph shows the results for u_min = 1.0 and k ∈ {10,5,3,2}:
Notes
- The soft maximum is a special case of the generalized f-mean.
See also
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | k | 4.7 | Parameter to control the closeness to a hard maximum |
| Structural Parameters | |||
| Boolean | useMaxOperator | false | = true, if a regular 'hard' maximum is to be used |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Connectors.RealInput | u (from SISO) | Input | |
| Interfaces.Connectors.RealInput | u_min | The floor |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from SO) | ||
| Gap | u_min_shifted | ||
| Gap | u_shifted | ||
| Logical.Switch | switch | ||
| Logical.ConstantConverterBoolean | useHardMaxQ | ||
| Add_2 | softmin_shifted |
Revisions
- Introduced in v2.0.0.
- Fixed
hardMaxand numerical stability issues in v2.1.0.