Skip to content

Commit

Permalink
Keyword for consumption (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxBlesch authored Apr 24, 2024
1 parent c965e92 commit d0ec496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/upper_envelope/fues_jax/fues_jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ def _compute_value(
consumption, next_period_value, utility_function, utility_kwargs, discount_factor
):
utility = utility_function(
consumption,
consumption=consumption,
**utility_kwargs,
)
return utility + discount_factor * next_period_value
2 changes: 1 addition & 1 deletion src/upper_envelope/fues_numba/fues_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ def _augment_grids(
)[:-1]

utility = utility_function(
grid_points_to_add,
consumption=grid_points_to_add,
**utility_kwargs,
)
values_to_add = utility + discount_factor * expected_value_zero_savings
Expand Down

0 comments on commit d0ec496

Please sign in to comment.