Skip to main content

Python interface for DecisionProgramming.jl

Project description

pyDecisionProgramming

Docs Image

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:

  1. Install Julia

    Download julia at [https://julialang.org/downloads]. Follow the instructions at Platform Specific Instructions.

  2. Install pyDecisionProgramming:

    pip install DecisionProgramming
    
  3. 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

This version

1.0

Download files

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

Source Distribution

DecisionProgramming-1.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

DecisionProgramming-1.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

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

Hashes for DecisionProgramming-1.0.tar.gz
Algorithm Hash digest
SHA256 539e346bf0babd86f452698a9fbf4bea6644fd1c4d4af2a21509938fbac768d8
MD5 647ef80aec8292304ff19a080161db8b
BLAKE2b-256 d5b3c3476c6c0e9fcd09c0dcd8a8db8707063e7bf4ef1edc7c3d1302920a4c64

See more details on using hashes here.

Provenance

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

Hashes for DecisionProgramming-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 876fa4770031c9e7f786f020f545ca48fef6fbe3950caa88b4b9f90a67de8708
MD5 1075a189f8d6154f0ccca0427aa205ec
BLAKE2b-256 c3a3406b1828f59d0291b6373821d74525c2ce79fb31360c66fc006a2baf2729

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page