Tutorial: Running a Notebook that uses Decision Optimization in DSX
This tutorial shows you how to run the sample notebooks provided with DSX on Integrated Analytics System (IAS) that use the Decision Optimization service. Decision Optimization gives you access to IBM's world-leading solution engines for mathematical programming and constraint programming.
For more information, see Decision Optimization in DSX.
This tutorial shows you how to carry out the following tasks:
- Open a sample notebook involving Decision Optimization in DSX on IAS.
- Register for the Decision Optimization service on the IBM Cloud (
DOcplexcloud
). - Get an API key and base URL for the Decision Optimization service and add it to your notebook.
- Run the notebook.
Time required
10 minutesScenario
You are a data scientist who wants to create or run an analytics notebook that makes use of the Decision Optimization service.
Difficulty
Beginner
Audience
Data scientists or anyone interested in exploring DSX Decision Optimization on Integrated Analytics System.
Prerequisites
You will need to have a user account on Integrated Analytics System. If you don't have one, contact your Integrated Analytics System system administrator to create one for you. You will also need a user ID and password for DSX on that system as well as internet access and a valid ID for IBM Cloud.
Open a sample notebook involving Decision Optimization
Procedure
Register for the Decision Optimization service on IBM Cloud (DOcplexcloud)
You need to have access to a Decision Optimization service in order for the notebook to run successfully. You can register for a free trial of the Decision Optimization service on IBM Cloud.
Procedure
- In a new browser window, navigate to the Decision Optimization on Cloud home page.
- Scroll down and click Go to DOcplexcloud web site.
- Click Register for a Free Trial.
-
Follow the prompts to register for your free trial of the Decision Optimization on Cloud service.
After a successful registration, you will receive an email with information on how to access the Decision Optimization on Cloud service.
Get an API key and base URL for the Decision Optimization service and add it to your notebook
Procedure
Run the notebook
Run each notebook cell in consecutive order. If you receive a No module named doclex.mp.environment
error, restart the notebook kernel and execute the notebook cells again.