Infinite loss in one-dimensional HJB equation #1804
Unanswered
anthonybritto
asked this question in
Q&A
Replies: 1 comment
-
There must exist some errors like divided by 0 |
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
-
Thank you @lululxvi for your incredible work with this package. I'm trying to solve the following one-dimensional equation
$x \in [0, 1]$ subject to the boundary conditions $h(0) = 0$ , $h'(1) = 0$ .
over the domain
My code and output is below (the
constants
module is also below). Apart from theValueError
, I cannot seem to get the "infinite" losses under control. I have tried modifying the NN as well as the solver options, loss function etc. but to no avail. Am I making an obvious mistake somewhere? Any insight is appreciated!Output:
For good measure, here is the
constants
module:Beta Was this translation helpful? Give feedback.
All reactions