An implementation of the smooth minimum using a cubic term approach.
Source:
function smoothMin_cubic extends TRANSFORM.Icons.Function; import Modelica.Math; input Real x1 "First argument of smooth operator"; input Real x2 "Second argument of smooth operator"; input Real dx "Approximate difference between x1 and x2, below which regularization starts"; output Real y "Result of smooth operator"; end smoothMin_cubic;