This implementation follows Professor Christopher D. Carroll's lecture notes.
Requirements: Python 3.8-3.10 and uv
git clone https://github.com/llorracc/Q-Investment.git
cd Q-Investment
./INSTALL.sh
source .venv/bin/activateThat's it! See INSTALLATION.md for troubleshooting.
The Qmod folder includes a file defining the Qmod Python class, which represents a Q-model of capital investment. The Qmod class' current functions include:
- Solution of the model, obtaining its policy rule.
- Drawing of the model's phase diagram.
- Simulation of the model's dynamics starting from a given level of capital.
The Dolo folder implements the model using Dolo.
Current examples include:
- Qmod-basic-features: illustrates how to use Qmod and its main functions.
- Dolo-simulations: uses Dolo to conduct more complicated simulation exercises that could not be easily achieved using Qmod.
- Structural-changes-Qmod-Dolo: solves the dynamic exercises in Professor Christopher D. Carroll's lecture notes using both Qmod and Dolo.