gEconpy.model.block.Block.simplify_system_equations#

Block.simplify_system_equations()#

Simplify the first-order conditions in system_equations.

Two passes run in sequence:

  1. Generated-multiplier elimination. When the Lagrangian carries auto-generated multipliers (named lambda__*) that appear in a trivial linear identity x = ±y, substitute them away. User-named multipliers are kept, matching gEcon’s behavior.

  2. Power canonicalization. Apply sympy.powsimp() to collapse Pow(x, e)/x Pow(x, e-1) patterns left over by chain-rule differentiation (typical for CRRA-style utility output).