An implementation of the smooth maximum using a quadratic term approach.
Source:
function smoothMax_quadratic 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 smoothMax_quadratic;