gEconpy.model.model.Model.equation_tensors#

Model.equation_tensors(filter_known=False)#

Pytensor graphs for the model’s steady-state equations.

Returns one scalar TensorVariable per equation, each equal to zero at the steady state. All variables and parameters in the shared sympytensor cache are used as graph inputs, so the returned graphs share node identity with ss_tensors and param_tensors.

Each call returns a fresh clone (input leaves shared). The built graphs are memoized internally as immutable masters; consumers compile them, and compilation rewrites graphs in place, so handing out the master directly would let one consumer corrupt it for the next.

Parameters:
filter_knownbool

If True, substitute analytically known steady-state values and drop equations that become fully determined. Default is False (return all equations with all inputs).

Returns:
list of TensorVariable