Skip to content

CompiledModel

@dataclass(frozen=True)
class CompiledModel()

CompiledModel contains the model components mapped to numeric/vectorized/lambdified counterparts.

Fields:

Name Type Description
config ModelConfig Model config that was compiled.
kalman KalmanConfig \| None Parsed Kalman config attached at compile time.
cur_syms list[sympy.Symbol] Symbolized current-period state vector (cur_* symbols).
var_names list[str] Variables as strings.
idx dict[str, int] Variable-name to index mapping used by solver/simulation.
objective_eqs list[sp.Expr] Solver targets in symbolic representation. (not used in the solver)
objective_funcs list[Callable] Solver objectives as standalone Callables.
equations Callable objective_funcs compiled into a single Callable target. (solver input)
calib_params list[sympy.Symbol] Parameter symbols in canonical calibration order used by compiled functions.
observable_names list[str] Observable variables as strings.
observable_eqs list[sp.Expr] Measurement equations in symbolic representation.
observable_funcs list[Callable] Measurement equations as Callables.
observable_jacobian Callable[..., np.ndarray] Compiled Jacobian function of measurement equations.
n_state int Number of state variables.
n_exog int Number of exogenous variables.

 

Methods:

Signature Return Type Description
.to_dict() dict CompiledModel in dictionary form.