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.
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.