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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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