Decision Optimization utilities for IBM Cloud Pak for Data projects.
Source (GitHub)
Documentation (GitHubPages)
This repository contains the package dse_do_utils
. This can be installed using pip.
From v0.5.0.0, the dse-do-utils require the package decision-optimization-client==1.0.0 and no longer the former dd-scenario. This package is NOT installed by default, neither in CPD3.5 not CPD4.0. DSE-DO-Utils v0.5.0.0 works in both CPD 3.5 and 4.0. dd-scenario works in CPDv3.5, but NOT in CPDv4.0.
For Cloud Pak for Data v4.5.
CPDv4.5 allows for easy customization of environments. Add the following to the customization configuration:
channels:
dependencies:
- pip
- pip:
- dse-do-utils==0.5.5.0
- decision-optimization-client==1.1.0
This automatically downloads dse-do-utils from PyPI and installs the package.
For air-gapped systems that have no access to PyPI:
dependencies:
- pip:
- file:///userfs/packages/dse_do_utils-0.5.4.5b4-py3-none-any.whl
This downloads the package as a wheel/zip and puts it in the data assets
!pip download dse-do-utils -d /project_data/data_asset/
Then move the wheel/zip to the Data Assets.
See the InstallationReadMe.md
for more details on installation and usage in other cases.
Then import the required classes from dse_do_utils
:
from dse_do_utils import ScenarioManager, DataManager
This is the basics. For many ore details on other usage, see InstallationReadMe.md
To be used within:
When developing and using optimization models, there are 3 different environments the Python DO model might run in:
From CP4D 4.6, all environments can be customized from PyPI packages and wheel files
The classes OptimizationEngine
and DataManager
are intended to be used within the optimization model code
that will run in the Model Builder and WML deployment. All other classes, in particular the ScenarioManager
are
designed to be used outside of the Model Builder or WML, e.g. within #dd-ignore
cells.
This package requires: