API Reference#
Complete API reference for all public functions in pyperfectforesight.
Utilities#
Time-indexed symbolic variable |
Model processing#
Process model equations and compile to numeric functions |
|
Detect which variables appear at which time lags in the equations |
|
Check if an equation contains only current period variables |
|
Eliminate static variables from dynamic equations |
|
Compute symbolic Jacobian blocks for all lags present in equations |
Steady state#
A steady-state solution with full provenance (params and exogenous values). |
|
Compile steady-state residual functions once for repeated use with different parameters. |
|
Solve for the steady state using pre-compiled functions. |
|
Compute steady state numerically by solving the system where all time-indexed variables are set to their steady-state values |
High-level solvers#
Solve the perfect foresight problem using an augmented-path BVP formulation. |
|
Solve a perfect foresight model using homotopy (parameter continuation). |
|
|
Solve a perfect foresight model with multiple surprise (MIT) shocks. |
Initial guess#
Generate an initial guess path for the perfect foresight solver. |
Auxiliary variables#
Solve auxiliary equations numerically for a single time period (nested method) |
|
Compute auxiliary variables from dynamic variable solution |
Low-level solver components#
Evaluate residuals of the dynamic equations |
|
Build sparse Jacobian matrix using block structure |
|
Append terminal conditions to enforce convergence to steady state |