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

Metadata

Release files for pylcm 22

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

Source distribution (sdist)

Source distribution for pylcm 22
File Size Uploaded
pylcm-22.tar.gz 778.2 kB Details

Built distribution (wheel)

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

Total release size: 1.7 MB

Release files / pylcm-22.tar.gz

Download URL pylcm-22.tar.gz
Size 778.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eca55b9a448b25cc14a5adc8c08c548471f98307577fe85b4fed431db69a8126
BLAKE2b-256 checksum
How to use checksums
bb271b3470aa47a4ab51fb3d9d4b6718fbeccb13ada59d648867e8520c228895
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Release files / pylcm-22-py3-none-any.whl

Download URL pylcm-22-py3-none-any.whl
Size 872.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bafb6c9ee8916807f9611cf906b161fd55ff7aba97a37ccf70a019600cba8f68
BLAKE2b-256 checksum
How to use checksums
2f8e27c111b921c298a746d754a60086e82956ad60ccf7dcd6960f857e8d561c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

22 This release

2 release files

0.0.1

2 release files

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