Skip to content

Commit ef0c64f

Browse files
authored
Merge pull request #2040 from ibpsa/issue2039_functionInlining
Issue2039 function inlining
2 parents e769270 + cc8b0f2 commit ef0c64f

File tree

7 files changed

+57
-29
lines changed

7 files changed

+57
-29
lines changed

IBPSA/Resources/ReferenceResults/Dymola/IBPSA_Airflow_Multizone_Examples_OneOpenDoor.txt

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
last-generated=2018-06-07
1+
last-generated=2025-08-22
22
statistics-simulation=
33
{
44
"linear": "0",
55
"nonlinear": "1",
66
"number of continuous time states": "5",
77
"numerical Jacobians": "0"
88
}
9-
simpleZone.volRoom.T=[2.931499938964844e+02, 2.904224243164062e+02, 2.903838195800781e+02, 2.903834228515625e+02, 2.903833923339844e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.908861389160156e+02, 2.910499877929688e+02, 2.910529174804688e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02]
109
time=[0e+00, 6e+06]
11-
bou.ports[2].m_flow=[0e+00, 3.341532945632935e-01, 3.364447057247162e-01, 3.364683091640472e-01, 3.364692628383636e-01, 3.364689350128174e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.052481710910794e-01, 2.943538427352905e-01, 2.941556572914124e-01, 2.941518127918243e-01, 2.941517531871796e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01]
12-
bou.ports[1].m_flow=[0e+00, -2.841533124446869e-01, -2.864447236061096e-01, -2.864683270454407e-01, -2.864692509174347e-01, -2.864689230918884e-01, -2.86468893289566e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.552481591701504e-01, -2.443538308143616e-01, -2.441556602716446e-01, -2.441518306732178e-01, -2.441517859697342e-01, -2.441518008708954e-01, -2.441518008708954e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518008708954e-01, -2.441518008708954e-01, -2.441518008708954e-01, -2.441518008708954e-01, -2.441518008708954e-01, -2.441518008708954e-01, -2.441518008708954e-01, -2.441518008708954e-01, -2.441518008708954e-01, -2.441518008708954e-01, -2.441518008708954e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518008708954e-01, -2.441518008708954e-01]
10+
simpleZone.volRoom.T=[2.931499938964844e+02, 2.904224548339844e+02, 2.903838195800781e+02, 2.903829345703125e+02, 2.903834533691406e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.903834228515625e+02, 2.9088623046875e+02, 2.910501098632812e+02, 2.910528869628906e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02, 2.91052978515625e+02]
11+
bou.ports[1].m_flow=[0e+00, -2.841519713401794e-01, -2.864576876163483e-01, -2.888666391372681e-01, -2.864698469638824e-01, -2.864722013473511e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.86468893289566e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688336849213e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.864688634872437e-01, -2.552406489849087e-01, -2.443323880434037e-01, -2.441579401493073e-01, -2.441520839929581e-01, -2.441521435976028e-01, -2.441518008708954e-01, -2.441517412662506e-01, -2.441517412662506e-01, -2.441518008708954e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01, -2.441518157720566e-01]
12+
bou.ports[2].m_flow=[0e+00, 3.341511487960815e-01, 3.364364206790924e-01, 3.349625766277313e-01, 3.364636898040771e-01, 3.36466908454895e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688456058502e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.364688754081726e-01, 3.052432835102078e-01, 2.943518757820129e-01, 2.941577136516571e-01, 2.941520810127258e-01, 2.941521406173706e-01, 2.941518425941467e-01, 2.941517531871796e-01, 2.941517233848572e-01, 2.94151782989502e-01, 2.94151782989502e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01, 2.941518127918243e-01]

IBPSA/Utilities/Math/Functions/bicubic.mo

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ function bicubic "Bicubic function"
66
input Real x2 "Independent variable";
77
output Real y "Result";
88
protected
9-
Real x1Sq "= x1^2";
10-
Real x2Sq "= x2^2";
9+
Real x1Sq = x1*x1 "x1 squared";
10+
Real x2Sq = x2*x2 "x2 squared";
1111
algorithm
12-
x1Sq :=x1*x1;
13-
x2Sq :=x2*x2;
1412
y := a[1] + a[2] * x1 + a[3] * x1^2
1513
+ a[4] * x2 + a[5] * x2^2
1614
+ a[6] * x1 * x2
@@ -19,7 +17,7 @@ algorithm
1917
+ a[9] * x1Sq * x2
2018
+ a[10] * x1 * x2Sq;
2119

22-
annotation (smoothOrder=999, Documentation(info="<html>
20+
annotation (smoothOrder=999, Inline=true, Documentation(info="<html>
2321
<p>
2422
This function computes
2523
</p>
@@ -36,6 +34,12 @@ This function computes
3634
</html>", revisions="<html>
3735
<ul>
3836
<li>
37+
July 21, 2025 by Hongxiang Fu:<br/>
38+
Made the function inlined.<br/>
39+
This is for
40+
<a href=\"https://github.com/lbl-srg/modelica-buildings/issues/4278\">#4278</a>.
41+
</li>
42+
<li>
3943
June 25, 2023, by Michael Wetter:<br/>
4044
Corrected html formatting.
4145
</li>

IBPSA/Utilities/Math/Functions/quadraticLinear.mo

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ function quadraticLinear
77
input Real x2 "Independent variable for linear part";
88
output Real y "Result";
99
protected
10-
Real x1Sq;
10+
Real x1Sq=x1*x1;
1111
algorithm
12-
x1Sq :=x1*x1;
13-
y :=a[1] + a[2]*x1 + a[3]*x1Sq + (a[4] + a[5]*x1 + a[6]*x1Sq)*x2;
12+
y := a[1] + a[2]*x1 + a[3]*x1Sq + (a[4] + a[5]*x1 + a[6]*x1Sq)*x2;
1413

15-
annotation (smoothOrder=999, Documentation(info="<html>
14+
annotation (smoothOrder=999, Inline=true, Documentation(info="<html>
1615
This function computes
1716
<p align=\"center\" style=\"font-style:italic;\">
1817
y = a<sub>1</sub> + a<sub>2</sub> x<sub>1</sub>
@@ -23,6 +22,12 @@ This function computes
2322
</html>", revisions="<html>
2423
<ul>
2524
<li>
25+
July 21, 2025 by Matthis Thorade and Hongxiang Fu:<br/>
26+
Made the function inlined.<br/>
27+
This is for
28+
<a href=\"https://github.com/lbl-srg/modelica-buildings/issues/4278\">#4278</a>.
29+
</li>
30+
<li>
2631
February 29, 2009 by Michael Wetter:<br/>
2732
First implementation.
2833
</li>

IBPSA/Utilities/Math/Functions/quinticHermite.mo

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,16 @@ protected
2929
algorithm
3030
y :=H0*y1 + H1*y1d*h + H2*y1dd*hpow2 + H3*y2dd*hpow2 + H4*y2d*h + H5*y2;
3131

32-
annotation (smoothOrder=99,
32+
annotation (smoothOrder=99, Inline=true,
3333
Documentation(revisions="<html>
3434
<ul>
3535
<li>
36+
July 21, 2025 by Hongxiang Fu:<br/>
37+
Made the function inlined.<br/>
38+
This is for
39+
<a href=\"https://github.com/lbl-srg/modelica-buildings/issues/4278\">#4278</a>.
40+
</li>
41+
<li>
3642
April 19, 2017, by Filip Jorissen:<br/>
3743
First implementation.
3844
</li>

IBPSA/Utilities/Math/Functions/smoothHeaviside.mo

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ protected
1111
algorithm
1212
y := smooth(2, max(0, min(1, 0.5+dx*(1.875+xpow2*(-5+6*xpow2)))));
1313

14-
annotation (smoothOrder = 2,
14+
annotation (smoothOrder = 2, Inline=true,
1515
Documentation(info="<html>
1616
<p>
1717
Twice Lipschitz continuously differentiable approximation to the
@@ -24,6 +24,12 @@ IBPSA.Utilities.Math.Examples.SmoothHeaviside</a>.
2424
</html>", revisions="<html>
2525
<ul>
2626
<li>
27+
July 21, 2025 by Hongxiang Fu:<br/>
28+
Made the function inlined.<br/>
29+
This is for
30+
<a href=\"https://github.com/lbl-srg/modelica-buildings/issues/4278\">#4278</a>.
31+
</li>
32+
<li>
2733
October 21, 2019:<br/>
2834
Added <code>delta.min</code> attribute to guard against division by zero.<br/>
2935
This is for

IBPSA/Utilities/Math/Functions/smoothLimit.mo

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ function smoothLimit
99
output Real y "Result";
1010

1111
protected
12-
Real cor;
12+
Real cor = deltaX/10;
1313
algorithm
14-
cor :=deltaX/10;
15-
y := IBPSA.Utilities.Math.Functions.smoothMax(x,l+deltaX,cor);
16-
y := IBPSA.Utilities.Math.Functions.smoothMin(y,u-deltaX,cor);
17-
annotation (smoothOrder = 1,
14+
y := IBPSA.Utilities.Math.Functions.smoothMin(
15+
IBPSA.Utilities.Math.Functions.smoothMax(
16+
x,l+deltaX,cor),
17+
u-deltaX,cor);
18+
annotation (smoothOrder = 1, Inline=true,
1819
Documentation(info="<html>
1920
<p>
2021
Once continuously differentiable approximation to the <code>limit(.,.)</code> function.
@@ -28,6 +29,12 @@ IBPSA.Utilities.Math.Examples.SmoothMin</a>.
2829
</html>", revisions="<html>
2930
<ul>
3031
<li>
32+
July 21, 2025 by Hongxiang Fu:<br/>
33+
Made the function inlined.<br/>
34+
This is for
35+
<a href=\"https://github.com/lbl-srg/modelica-buildings/issues/4278\">#4278</a>.
36+
</li>
37+
<li>
3138
March 12, 2015, by Filip Jorissen:<br/>
3239
Added documentation reference demonstrating overshoot.
3340
</li>

0 commit comments

Comments
 (0)