Once continuously differentiable approximation to the limit
function
Once continuously differentiable approximation to the
limit(.,.) function. The output is bounded to be in
[l, u].
Note that the limit need not be respected, such as illustrated
in Annex60.Utilities.Math.Examples.SmoothMin.
function smoothLimit
input Real x "Variable";
input Real l "Low limit";
input Real u "Upper limit";
input Real deltaX "Width of transition interval";
output Real y "Result";
end smoothLimit;
- March 12, 2015, by Filip Jorissen:
Added documentation reference demonstrating overshoot.
- February 5, 2015, by Filip Jorissen:
Added smoothOrder = 1.
- Sept 1, 2010, by Michael Wetter:
Changed scaling to make sure that bounds are never violated.
- July 14, 2010, by Wangda Zuo, Michael Wetter:
First implementation.
Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using
GenerateDoc.mos