gEconpy.model.perturbation.check_bk_condition#
- gEconpy.model.perturbation.check_bk_condition(A, B, C, D, tol=1e-08, verbose=True, on_failure='ignore', return_value='dataframe')#
Check the Blanchard-Kahn condition for the linearized system.
Computes the generalized eigenvalues of the system in the Sims (2002) [1] form. Per Blanchard and Kahn (1980) [2], the number of unstable eigenvalues (modulus > 1) must equal the number of forward-looking variables for a unique stable solution to exist.
- Parameters:
- A, B, C, D
np.ndarray Jacobian matrices of the linearized DSGE system, evaluated at steady state.
- tol
float, default 1e-8 Tolerance below which numerical values are considered zero.
- verbosebool, default
True Whether to log the result.
- on_failure
'raise'or'ignore', default'ignore' Action to take if the condition is not satisfied.
- return_value
'dataframe','bool', orNone, default'dataframe' What to return: a DataFrame of eigenvalues, a boolean, or nothing.
- A, B, C, D
- Returns:
References