A Computational Economics Toolbox
Project description
CompEcon
A Python version of Miranda and Fackler's CompEcon toolbox
The aim of this toolbox is to provide a Python toolbox to replicate the funcionality of Miranda and Fackler's CompEcon toolbox, which was written to accompany their Computational Economics and Finance and is coded in Matlab.
The source for this project is available in Github.
A major difference in this implementation is that much of the code is object-oriented, providing classes to represent:
- Interpolation bases: Chebyshev, Spline, and Linear
- Dynamic programming models: with discrete and/or continuous state and action variables
- Nonlinear problems
- Optimization problems
Some other differences are:
- The solution of dynamic models is returned as a pandas dataframe, as opposed to a collection of vectors and matrices.
- Some additional functionality is included, most notably for Smolyak interpolation.
- Basis objects are callable, so they can be used to interpolation function by "calling" the basis.
The toolbox also replicates some of the demos and examples from Miranda and Fackler's textbook. The examples can be found in the .\textbook directory, while the demos are in the directories .\demos (for .py files) and .\notebooks (for Jupyter notebooks).
At this time the documentation is incomplete, so the best way to get going with this toolbox is by exploring the notebooks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file compecon-2024.5.19.tar.gz
.
File metadata
- Download URL: compecon-2024.5.19.tar.gz
- Upload date:
- Size: 130.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d4495b3adb22871bbd608b2677f464c79ffd3d267e17ef3ff913c180ba72018 |
|
MD5 | c877ab2f18f340b9aedd64c7b3395af5 |
|
BLAKE2b-256 | fa34b27a23ccd337a77049037fb003ab45484d74736d9cb2d08fee16b20db39e |
File details
Details for the file compecon-2024.5.19-py3-none-any.whl
.
File metadata
- Download URL: compecon-2024.5.19-py3-none-any.whl
- Upload date:
- Size: 179.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67548957fca0fd163995d8e12b8cecdcef0fe1c619afbcd75ad12c553d2be94f |
|
MD5 | 45039c23dec95ab7077e391d44f8927b |
|
BLAKE2b-256 | ad201d48acd6886a3761c18d1de583e10e800b280e73b372a9b3df30b5e42429 |