Table of contents

Examples and samples

Describes the examples presented in this documentation and the samples provided for IBM Watson Studio. Other samples are available in the Decision Optimization Github catalog.

The following table shows examples provided in this documentation, which show you how to use Decision Optimization for Watson Studio.
Table 1. Decision Optimization documentation examples

Learn how to ...


Create scheduling models using the Modeling Assistant

House Construction example

  • Create, edit and solve a planning and scheduling model with the Modeling Assistant
  • Create and examine different scenarios

Solving a model using the Modeling Assistant

Create Python optimization models using the Decision Optimization Model Builder

Diet example

  • Create and solve a Python model generated from an existing scenario
  • Create and examine a new scenario

Solving a Python-based model

Multiple scenarios example

  • Create a Python model from a Python Notebook imported into Decision Optimization and solve it
  • Generate multiple scenarios from a Python Notebook using randomized data

Working with multiple scenarios

Create or import DOcplex Python Notebooks

Decision Optimization Notebook examples

  • Download a Notebook from the Community page and add it to a project
  • Get your DOcplex API key and URL
  • Run a Notebook

Decision Optimization Notebooks

Model Builder samples

The following table lists the Decision Optimization Models that are provided in DO-samples. All these assets use the Model Builder and contain data.

Table 2. Decision Optimization Models
Models for Decision Optimization Problem type Model type
Diet Blending Python
StaffPlanning Multi-Scenario Planning Python
BridgeScheduling Scheduling Modeling Assistant
HouseConstructionScheduling Scheduling with assignment Modeling Assistant
MarketingCampaignAssignment Resource Assignment (Scenarios 1 - 4)

Selection and Allocation (Scenario 4 - Selection)

Modeling Assistant
SupplyDemandPlanning Supply & Demand Planning Modeling Assistant
PortfolioAllocation Selection & Allocation Modeling Assistant

Using the Decision Optimization Github Catalog samples

Other samples are provided in the Decision Optimization GitHub Catalog. First download an example zip file from Github. Then in Decision Optimization for Watson Studio, create a new project (select Add Project and then From file). You can then drag-and-drop the zip file into the Project File pane.