# 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](https://github.com/PaulFackler/CompEcon), which was written to accompany their [Computational Economics and Finance](https://mitpress.mit.edu/books/applied-computational-economics-and-finance) and is coded in Matlab.
[The source for this project is available in Github](https://github.com/randall-romero/CompEcon-python).
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](https://pandas.pydata.org/), as opposed to a collection of vectors and matrices.
* Some additional functionality is included, most notably for [Smolyak interpolation](http://nber.org/papers/w19326).
* 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](https://mitpress.mit.edu/books/applied-computational-economics-and-finance). 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.
Raw data
{
"_id": null,
"home_page": "http://randall-romero.com/code/compecon",
"name": "compecon",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "computations economics numerical methods",
"author": "Randall Romero-Aguilar",
"author_email": "randall.romero@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/fa/34/b27a23ccd337a77049037fb003ab45484d74736d9cb2d08fee16b20db39e/compecon-2024.5.19.tar.gz",
"platform": null,
"description": "# CompEcon\r\n\r\n## A Python version of Miranda and Fackler's CompEcon toolbox\r\n\r\nThe aim of this toolbox is to provide a Python toolbox to replicate the funcionality of [Miranda and Fackler's CompEcon toolbox](https://github.com/PaulFackler/CompEcon), which was written to accompany their [Computational Economics and Finance](https://mitpress.mit.edu/books/applied-computational-economics-and-finance) and is coded in Matlab.\r\n\r\n[The source for this project is available in Github](https://github.com/randall-romero/CompEcon-python).\r\n\r\nA major difference in this implementation is that much of the code is object-oriented, providing classes to represent:\r\n\r\n* Interpolation bases: Chebyshev, Spline, and Linear\r\n* Dynamic programming models: with discrete and/or continuous state and action variables\r\n* Nonlinear problems\r\n* Optimization problems\r\n\r\nSome other differences are:\r\n\r\n* The solution of dynamic models is returned as a [pandas dataframe](https://pandas.pydata.org/), as opposed to a collection of vectors and matrices.\r\n* Some additional functionality is included, most notably for [Smolyak interpolation](http://nber.org/papers/w19326).\r\n* Basis objects are callable, so they can be used to interpolation function by \"calling\" the basis.\r\n\r\n\r\nThe toolbox also replicates some of the demos and examples from [Miranda and Fackler's textbook](https://mitpress.mit.edu/books/applied-computational-economics-and-finance). 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).\r\n\r\nAt this time the documentation is incomplete, so the best way to get going with this toolbox is by exploring the notebooks. \r\n",
"bugtrack_url": null,
"license": null,
"summary": "A Computational Economics Toolbox",
"version": "2024.5.19",
"project_urls": {
"Bug Reports": "https://github.com/randall-romero/CompEcon/issues",
"Homepage": "http://randall-romero.com/code/compecon",
"Source": "https://github.com/randall-romero/CompEcon/"
},
"split_keywords": [
"computations",
"economics",
"numerical",
"methods"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ad201d48acd6886a3761c18d1de583e10e800b280e73b372a9b3df30b5e42429",
"md5": "45039c23dec95ab7077e391d44f8927b",
"sha256": "67548957fca0fd163995d8e12b8cecdcef0fe1c619afbcd75ad12c553d2be94f"
},
"downloads": -1,
"filename": "compecon-2024.5.19-py3-none-any.whl",
"has_sig": false,
"md5_digest": "45039c23dec95ab7077e391d44f8927b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 179295,
"upload_time": "2024-05-20T01:22:06",
"upload_time_iso_8601": "2024-05-20T01:22:06.228398Z",
"url": "https://files.pythonhosted.org/packages/ad/20/1d48acd6886a3761c18d1de583e10e800b280e73b372a9b3df30b5e42429/compecon-2024.5.19-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fa34b27a23ccd337a77049037fb003ab45484d74736d9cb2d08fee16b20db39e",
"md5": "c877ab2f18f340b9aedd64c7b3395af5",
"sha256": "3d4495b3adb22871bbd608b2677f464c79ffd3d267e17ef3ff913c180ba72018"
},
"downloads": -1,
"filename": "compecon-2024.5.19.tar.gz",
"has_sig": false,
"md5_digest": "c877ab2f18f340b9aedd64c7b3395af5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 130885,
"upload_time": "2024-05-20T01:22:08",
"upload_time_iso_8601": "2024-05-20T01:22:08.068739Z",
"url": "https://files.pythonhosted.org/packages/fa/34/b27a23ccd337a77049037fb003ab45484d74736d9cb2d08fee16b20db39e/compecon-2024.5.19.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-20 01:22:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "randall-romero",
"github_project": "CompEcon",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "compecon"
}