Skip to content
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

ENH: Throw an error when utility is not defined on a grid value #55

Open
timmens opened this issue Feb 19, 2024 · 0 comments
Open

ENH: Throw an error when utility is not defined on a grid value #55

timmens opened this issue Feb 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@timmens
Copy link
Member

timmens commented Feb 19, 2024

Current behavior

If the utility is evaluated on a grid value that is undefined we either introduce NAs, which lead to an error, or we introduce negative infinity, which does not result in an error.

Expected behavior

In any of the above two cases, throw an informative error, so that either the calculated value function contains only proper numbers or an error is thrown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant