PerturbationModelSpecification.equations#

PerturbationModelSpecification.equations(theta, y_next, y, x_next, x)[source]#

Residuals of E_t f(y', y, x', x) = 0, n_states + n_controls of them.

Called many times with perturbed arguments to build numerical derivatives, so it must be smooth near the steady state and free of side effects.

Parameters:
Return type:

NDArray[double]

Returns:

The residual vector, (n_states + n_controls,); zero at the steady state.