To build Decision
Optimization models, you can create Python notebooks with DOcplex, a native Python
API for Decision Optimization, or use the Decision
Optimizationexperiment UI that has more benefits and
features.
Different ways to use Decision
Optimization
Copy link to section
Depending on your skills and expertise, you can use Decision
Optimization, in the
following different ways.
• Python notebooks
You can create Python notebooks with DOcplex, a native Python API for Decision
Optimization. See DOcplex. You need Operational Research (OR) modeling expertise to create variables,
objectives, and constraints to represent your problem.
The Modeling Assistant helps you to formulate models in
natural language, which requires little to no knowledge of OR, and does not require you to write
Python code. See Modeling Assistant models.
You can use the watsonx.ai Runtime REST API to deploy and
run Java models. For more information, see Decision Optimization Java models.
• Batch deployment
For more information about deployment with watsonx.ai Runtime, see Decision Optimization.
For a step-by-step guide to build, solve and deploy a Decision
Optimization model, by using the user interface, see the Quick start tutorial
with video.
Figure 1. Modeling and solving Decision Optimization experiments
Decision
Optimizationexperiment UI advantages
Copy link to section
The following table highlights how you can perform different functions both
with and without the Decision
Optimizationexperiment UI. Jupyter notebooks in this table are notebooks without the Decision
Optimizationexperiment UI. As you can see, you have more
advantages when you use the Decision
Optimizationexperiment UI.
Table 1. Decision
Optimization with the experiment UI
Task
Jupyter notebook (without the
Decision
Optimizationexperiment UI)
Decision
Optimizationexperiment UI (4 types of models)
Python
OPL models
CPLEX and CPO models
Modeling Assistant
Manage data
Import data from Projects.
Import data from Projects and edit data in the Prepare dataview . See Preparing input data.
Import data from Projects and edit data in the Prepare dataview . See Preparing input data.
Import data from Projects and edit data in the Prepare dataview . See Preparing input data.
Relationships in your data are intelligently deduced.
Formulate and run optimization models
Create a model formulation from scratch in a Python notebook. using the DOcplex API.
With notebooks individual cells can be run
interactively, which facilitates debugging.
Create a model formulation from scratch in Python.
Import and view a model formulation from a notebook or file.
Edit the imported Python model directly.
Export your model as a notebook. With notebooks individual cells can be run interactively, which
facilitates debugging.
Create a model formulation from scratch in OPL.
Import and view a model formulation from an OPL file.
Edit the imported OPL model directly.
Create a model formulation from scratch in CPLEX or CPO.
Import a CPLEX or CPO model file (.lp, .mps, and
.cpo files).
Edit .lp, .mps, and .cpo
files.
Run model and download solution file.
Create a model formulation from scratch by selecting from the proposed options expressed in
natural language.
Import and view a Modeling Assistant model formulation from a scenario.
Deploy your Decision
Optimization prescriptive model and associated common data once, and
then submit job requests to this deployment with only the related transactional data. You can deploy
models by using the watsonx.ai Runtime REST API or
by using the watsonx.ai Runtime Python
client. See watsonx.ai Runtime REST API and watsonx.ai Runtime Python
client.
About cookies on this siteOur websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising.For more information, please review your cookie preferences options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.