Skip to main content

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.

Release files for compecon 2024.5.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for compecon 2024.5.19
File Size Uploaded
compecon-2024.5.19.tar.gz 130.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for compecon 2024.5.19
File Interpreter ABI Platform
compecon-2024.5.19-py3-none-any.whl Python 3 none any Details

Total release size:310.2 kB

Release files / compecon-2024.5.19.tar.gz

Download URL compecon-2024.5.19.tar.gz
Size 130.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3d4495b3adb22871bbd608b2677f464c79ffd3d267e17ef3ff913c180ba72018
BLAKE2b-256 checksum
How to use checksums
fa34b27a23ccd337a77049037fb003ab45484d74736d9cb2d08fee16b20db39e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Release files / compecon-2024.5.19-py3-none-any.whl

Download URL compecon-2024.5.19-py3-none-any.whl
Size 179.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67548957fca0fd163995d8e12b8cecdcef0fe1c619afbcd75ad12c553d2be94f
BLAKE2b-256 checksum
How to use checksums
ad201d48acd6886a3761c18d1de583e10e800b280e73b372a9b3df30b5e42429
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

2024.5.19 This release

2 release files

2021.9

1 release file

2019.7

1 release file

2018.8

1 release file

2018.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page