Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.0.1 instead.

Life Cycle Models

Ruff pre-commit.ci status image

This package aims to generalize and facilitate the specification, solution, and simulation of finite-horizon discrete-continuous dynamic choice models.

Installation

PyLCM can be installed via PyPI or via GitHub. To do so, type the following in a terminal (or install via uv):

$ pip install pylcm

or, for the latest development version, type:

$ pip install git+https://github.com/OpenSourceEconomics/pylcm.git

GPU Support

By default, the installation of PyLCM comes with the CPU version of jax. If you aim to run PyLCM on a GPU, you need to install a jaxlib version with GPU support. For the installation of jaxlib, please consult the jax docs.

[!NOTE] GPU support is currently only tested on Linux with CUDA 12 and 13.

Developing

We use pixi for our local development environment. If you want to work with or extend the PyLCM code base you can run the tests using

$ git clone https://github.com/OpenSourceEconomics/pylcm.git
$ pixi run tests

This will install the development environment and run the tests. You can run ty using

$ prek run ty --all-files

Before committing, install the pre-commit hooks using

$ pixi global install prek
$ prek install

Questions

If you have any questions, feel free to ask them on the PyLCM Zulip chat.

Acknowledgments

PyLCM builds on the endogenous grid method (Carroll, 2006), its discrete-continuous extension (Iskhakov, Jørgensen, Rust & Schjerning, 2017), the Fast Upper-Envelope Scan (Dobrescu & Shanker, 2022), and the broader open-source ecosystem for dynamic programming — including OpenSourceEconomics, NumEconCopenhagen, and QuantEcon. See the Credits & Acknowledgments page for the full list of methods, replicated models, and software we are grateful to.

License

This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.

Copyright (c) 2023- The PyLCM Authors

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylcm-22.tar.gz (778.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylcm-22-py3-none-any.whl (872.2 kB view details)

Uploaded Python 3

File details

Details for the file pylcm-22.tar.gz.

File metadata

  • Download URL: pylcm-22.tar.gz
  • Upload date:
  • Size: 778.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pylcm-22.tar.gz
Algorithm Hash digest
SHA256 eca55b9a448b25cc14a5adc8c08c548471f98307577fe85b4fed431db69a8126
MD5 dfceb6e12b15316e6592dc6237073006
BLAKE2b-256 bb271b3470aa47a4ab51fb3d9d4b6718fbeccb13ada59d648867e8520c228895

See more details on using hashes here.

File details

Details for the file pylcm-22-py3-none-any.whl.

File metadata

  • Download URL: pylcm-22-py3-none-any.whl
  • Upload date:
  • Size: 872.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pylcm-22-py3-none-any.whl
Algorithm Hash digest
SHA256 bafb6c9ee8916807f9611cf906b161fd55ff7aba97a37ccf70a019600cba8f68
MD5 cfa2e25f84ec6669bfaf253bec9067ea
BLAKE2b-256 2f8e27c111b921c298a746d754a60086e82956ad60ccf7dcd6960f857e8d561c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page