Add experimental steady-state computation for heterogeneous-agent models
Implements the heterogeneity.compute_steady_state MATLAB routine to compute steady states of models with rich heterogeneity.
Implementation
-
MATLAB:
compute_steady_state.mMATLAB interface -
MEX: Fortran implementation (
compute_steady_state_tensor) inmex/sources/heterogeneity/ -
Calibration: Nonlinear solver using vendored MINPACK library in
vendor/minpack/ - Options: Comprehensive control over tolerances, iterations, and verbosity for each stage
Testing
-
tests/heterogeneity/ks_ss.mod: Test model for steady-state computation -
test_compute_steady_state.m&test_complete_workflow.m: Full workflow validation
Documentation
- Added
heterogeneity_compute_steady_statecommand to user manual with all options - Marked as experimental feature