Occasionally binding constraints of debt limit in FTPL model

Dear Pro.
I have written a new Keynesian model that introduces fiscal policy. I introduced the government debt limit in the model, which means that the debt to output ratio must be less than a threshold. The impulse response indicates that government spending shocks cause deficits and an increase in the debt to output ratio. My model can be solved normally when the debt limit constraint is not binding. However, when binding constraints, the model cannot be solved properly, so the impulse response under the piecewise linear model cannot be obtained. In Dynare 6.2, the program error is:

Warning: The matrix is close to singular value, or scaled incorrectly. Results may not be accurate. RCOND = NaN.

位置:occbin.mkdatap_anticipated_dyn (第 100 行)
位置: occbin.solve_one_constraint (第 190 行)
位置: occbin.solver (第 84 行)
位置: NK_Occbin.driver (第 2534 行)
位置: dynare (第 308 行)
definitions1.mod (716 Bytes)
definitions2.mod (236 Bytes)
NK_Occbin.mod (26.5 KB)
NK_Occbin_steadystate.m (2.0 KB)
param_NK.m (7.4 KB)
ps2pn_function.m (149 Bytes)
run_irf_Occbin.m (3.7 KB)
SS_LS1_aux.m (430 Bytes)

位置: run_irf_Occbin (第 106 行)

The following are my program attachments, the main program is run_irf_occbin.m.

1 Like

From what I can see, Lambda is never set in the bind regime, hence, the relax condition will never be satisfied. That is a problem in the setup.