gEconpy.model.block.Block.__init__#
- Block.__init__(name, definitions=None, controls=None, objective=None, constraints=None, identities=None, calibration=None, shocks=None, multipliers=None, equation_flags=None, source=None, symbol_locations=None, ss_solution_dict=None)#
Initialize a Block from sympy equations.
- Parameters:
- name
str The name of the block.
- definitions
dict[int,sp.Eq], optional Dictionary of definition equations, indexed by equation number.
- controls
list[TimeAwareSymbol], optional List of control variables.
- objective
dict[int,sp.Eq], optional Dictionary containing the objective equation.
- constraints
dict[int,sp.Eq], optional Dictionary of constraint equations.
- identities
dict[int,sp.Eq], optional Dictionary of identity equations.
- calibration
dict[int,sp.Eq], optional Dictionary of calibration equations.
- shocks
list[TimeAwareSymbol], optional List of shock variables.
- multipliers
dict[int,TimeAwareSymbol|None], optional Dictionary mapping constraint indices to Lagrange multipliers.
- equation_flags
dict[int,dict[str, bool]], optional Dictionary mapping equation indices to flag dictionaries.
- source
str, optional The source code of the GCN file, for rich error reporting.
- symbol_locations
dict, optional Dictionary mapping symbol names to their ParseLocation in the source. Used for rich error reporting during validation.
- ss_solution_dict
SymbolDictionary, optional Analytically known steady-state solutions. Used to resolve calibration expressions that reference steady-state variables (e.g.
phi_B = f(Y[ss])).
- name