gEconpy.model.simplification.simplify_constants#

gEconpy.model.simplification.simplify_constants(equations, variables)#

Simplify the system by removing variables that are deterministically defined as a known value.

Common examples include P[] = 1, setting the price level of the economy as the numeraire, or B[] = 0, putting the bond market in net-zero supply. In these cases, the variable can be replaced by the deterministic value after all FoC have been computed.

Parameters:
equationslist

The list of equations to simplify.

variableslist

The list of all variables in the system.

Returns:
reduced_equations: list of sp.Expr

The simplified list of equations.

reduced_variables: list of sp.Symbol

The variables that remain in the system.

eliminated_vars: list of sp.Symbol

The variables that were removed.