Skip to content

Commit

Permalink
inital D, G
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason DeBacker authored and Jason DeBacker committed Mar 22, 2017
1 parent bd47ef2 commit ce1f6a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Python/ogusa/TPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ def run_TPI(income_tax_params, tpi_params, iterative_params, small_open_params,
else:
TPIdist = np.array(list(utils.pct_diff_func(rnew[:T], r[:T])) + list(utils.pct_diff_func(BQnew[:T], BQ[:T]).flatten()) + list(
utils.pct_diff_func(wnew[:T], w[:T])) + list(np.abs(T_H[:T]))).max()

TPIdist_vec[TPIiter] = TPIdist
# After T=10, if cycling occurs, drop the value of nu
# wait til after T=10 or so, because sometimes there is a jump up
Expand Down Expand Up @@ -844,6 +845,8 @@ def run_TPI(income_tax_params, tpi_params, iterative_params, small_open_params,
C = household.get_C(c_path, C_params)

if budget_balance==False:
G = np.zeros((T,1))
D = np.zeros((T,1))
G[0] = alpha_G * Y[0]
D[0] = initial_debt * Y[0]
other_dg_params = (T, r, g_n_vector, g_y)
Expand Down

0 comments on commit ce1f6a1

Please sign in to comment.