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.
var_names list[str] Variables as strings.
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)
observable_names list[str] Observable variables as strings.
observable_eqs list[sp.Expr] Measurement equations in symbolic representation.
objective_funcs list[Callable] Measurement equations as Callables.
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.