Continuo 0.0.4-dev¶
continuo solves continuous-time, perfect-foresight deterministic
dynamic models in the spirit of Dynare. A .mod file declares the
endogenous and exogenous variables, the model equations (as differential
equations in continuous time, written with diff(x)), the steady state
and the exogenous shock paths; the toolbox parses it, discretises the
two-point boundary-value problem by collocation (Crank–Nicolson by default,
or a higher-order Gauss / Radau IIA / Lobatto IIIA family), and solves the
stacked nonlinear system with Newton’s method. Anticipated
changes, surprises (multi-segment beliefs) and occasionally-binding
constraints are all supported through the same machinery.
The toolbox has three faces:
the
.modsurface language (the canonical input format),a Python API (
continuo) for use in scripts and notebooks,a command-line wrapper
continuothat reads a.modfile and writes the solved path to CSV.
This manual is the reference for all three. The Quick start shows the smallest end-to-end use; the The .mod language documents every block and built-in of the surface language; Python API is the Python reference (generated from docstrings); Discretisation schemes documents the discretisation schemes (Crank–Nicolson and the higher-order collocation families); Time grids and adaptive refinement documents the time grid and adaptive refinement; Linear solvers documents the pluggable linear backends and how to choose one; Steady-state solvers does the same for the nonlinear steady-state algorithms; Worked examples is the index of the worked-out example models that ship with the source tree.
Getting started