ODE Solver with Constraints?
Hi, I was wondering if Diffrax supported adding a norm constraint at the boundary: $$|y(1)| = \text{constant}$$ for the neural ODE: $$\frac{dy}{dt} = f(t, y), \ y(0) = x$$
Any thoughts on how I would implement this?
So numerically speaking, the initial value problem already uniquely specifies the value of y(1).
Are you asking a modelling question, i.e. how you might train f such that this condition is true? If so I would suggest just making it a term in your loss function.
Ah, yes I want to learn $f$ so that this constraint is satisfied. Are you aware of any better techniques? Because there are no guarantees when simply adding a penalty term in my loss.