Python interface for DecisionProgramming.jl
Project description
pyDecisionProgramming
Python interface for DecisionProgramming.jl.
DecisionProgramming.jl is a Julia package for solving multi-stage decision problems under uncertainty, modeled using influence diagrams. Internally, it relies on mathematical optimization. Decision models can be embedded within other optimization models. We designed the package as JuMP extension.
Installation
Ubuntu 20.04:
-
Install Julia
Download julia at [https://julialang.org/downloads]. Follow the instructions at Platform Specific Instructions.
-
Install pyDecisionProgramming:
pip install DecisionProgramming
-
Install Julia requirements
After installing the Python package, running the command
pdp_setup_julia.py
should be sufficient to install the required Julia packages. Alternatively, install the DecisionProgramming package in Julia:
using Pkg Pkg.add(url="https://github.com/gamma-opt/DecisionProgramming.jl.git")
Usage
See the documentation for details on constructing a graph and finding the optimal path through a graph.
Environments
Set up the a Julia environment in the current folder run the Python script
import DecisionProgramming as dp
dp.setup_project()
To use this environment in a Python script, use
import DecisionProgramming as dp
dp.activate()
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 DecisionProgramming-1.0.tar.gz
.
File metadata
- Download URL: DecisionProgramming-1.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 539e346bf0babd86f452698a9fbf4bea6644fd1c4d4af2a21509938fbac768d8 |
|
MD5 | 647ef80aec8292304ff19a080161db8b |
|
BLAKE2b-256 | d5b3c3476c6c0e9fcd09c0dcd8a8db8707063e7bf4ef1edc7c3d1302920a4c64 |
File details
Details for the file DecisionProgramming-1.0-py3-none-any.whl
.
File metadata
- Download URL: DecisionProgramming-1.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 876fa4770031c9e7f786f020f545ca48fef6fbe3950caa88b4b9f90a67de8708 |
|
MD5 | 1075a189f8d6154f0ccca0427aa205ec |
|
BLAKE2b-256 | c3a3406b1828f59d0291b6373821d74525c2ce79fb31360c66fc006a2baf2729 |