You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if the following if statement in the function IBPSA.Utilities.Math.Functions.BaseClasses.smoothTransition could be replaced by the suggested if expression? This would allow its use in JModelica optimization for MPC. Namely, the model IBPSA.Fluid.MixingVolumes.BaseClasses.PartialMixingVolume if the parameter prescribedHeatFlowRate = true.
from:
algorithm
aX:= abs(x);
y := a + aX*(b + aX*(c + aX*(d + aX*(e + aX*f))));
if x < 0 then
y := -y;
end if;
to:
algorithm
aX:= abs(x);
y := if x >= 0 then a + aX*(b + aX*(c + aX*(d + aX*(e + aX*f)))) else
-(a + aX*(b + aX*(c + aX*(d + aX*(e + aX*f)))));
I could submit a pull request.
The text was updated successfully, but these errors were encountered:
I was wondering if the following if statement in the function
IBPSA.Utilities.Math.Functions.BaseClasses.smoothTransition
could be replaced by the suggested if expression? This would allow its use in JModelica optimization for MPC. Namely, the modelIBPSA.Fluid.MixingVolumes.BaseClasses.PartialMixingVolume
if the parameterprescribedHeatFlowRate = true
.from:
to:
I could submit a pull request.
The text was updated successfully, but these errors were encountered: