-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set_eval_nodes!
#10
Comments
This does not feel intuitive to me. I think an The reason for my hesitation about the current behavior is that I would expect If we change |
That makes perfect sense. The third option (returning a struct holding V, X, resid) sounds the best to me. Do you have any idea about the name of the struct? |
I'm never usually very creative with these things and name that struct It usually holds the value function, controls, and whatever fields I would need to evaluate those two at arbitrary points. Also having it hold resid would be natural |
I remembered I had implemented the fist option (returning |
I think putting them in a struct resolves that issue -- it is probably best to do that. |
For reference: |
Usually we want to evaluate the optimal value, the optimal policy, and the residual at a state grid finer than the interpolation grid. The current design is that this is done by
which modifies
res.V
(vector of optimal values),res.X
(vector of optimal actions), andres.resid
(vector of residuals).Is this intuitive and Julian? Any alternatives?
The text was updated successfully, but these errors were encountered: