gEconpy.model.steady_state.build_root_graphs#
- gEconpy.model.steady_state.build_root_graphs(equations, ss_input_nodes, use_jac=True)#
Build the pytensor graphs needed by
scipy.optimize.root.The equations are stacked into a residual vector internally. The Jacobian is computed via
sparse_jacobian(), which exploits the sparsity pattern of the steady-state system.- Parameters:
- Returns:
- resid
TensorVariable Stacked residual vector of shape
(n_eq,).- jac
TensorVariableorNone Jacobian of shape
(n_eq, n_var), or None ifuse_jacis False.
- resid