Replies: 1 comment
-
|
In general, yes, adding more constraints can help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ODEs and PDEs usually have quantities that are conserved by the dynamics: For example consider the simple system
if$(x(t),v(t))$ is a solution of this system, then $E(t)=v^2/2+V(x)$ is constant in time with a value $E_0$ determined by the initial condition. To solve this with deepXDE I can (1) just enforce the system (*) in the loss function or (2) I can add an additional term to the loss function $(v^2/2+V(x)-E_0)^2$ .
Of course, more complicated systems may have multiple constraints and/or will satisfy additional equations. For example, if in the above system (*) I add a linear "friction" term$-v$ to the rhs of the second equation then the solution satisfies
My question is this: is it better to just solve the "barebone" system, or is it better to add as many additional constrains are known?
Beta Was this translation helpful? Give feedback.
All reactions