gEconpy.model.block.Block.simplify_system_equations#
- Block.simplify_system_equations()#
Simplify the first-order conditions in
system_equations.Two passes run in sequence:
Generated-multiplier elimination. When the Lagrangian carries auto-generated multipliers (named
lambda__*) that appear in a trivial linear identityx = ±y, substitute them away. User-named multipliers are kept, matching gEcon’s behavior.Power canonicalization. Apply
sympy.powsimp()to collapsePow(x, e)/x → Pow(x, e-1)patterns left over by chain-rule differentiation (typical for CRRA-style utility output).