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
Add new binary operators that return the elementwise minimum / maximum values (e.g. pybamm.Minimum([1,2,3], 2) = [2,2,3]. Two options:
Evaluate can be handled by np.minimum / np.maximum, and the derivative should be e.g. left.diff(var) * (left > right) + right.diff(var) * (left <= right) (easier but gives discontinuity of derivative at the switching point)
Implement some kind of smooth transition between the two, e.g. based on this
The text was updated successfully, but these errors were encountered:
Add new binary operators that return the elementwise minimum / maximum values (e.g.
pybamm.Minimum([1,2,3], 2) = [2,2,3]
. Two options:np.minimum / np.maximum
, and the derivative should be e.g.left.diff(var) * (left > right) + right.diff(var) * (left <= right)
(easier but gives discontinuity of derivative at the switching point)The text was updated successfully, but these errors were encountered: