About cookies on this site Our 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 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.
Last updated: Nov 28, 2024
To deploy a Decision Optimization model, create a model ready for deployment in your deployment space and then upload your model as an archive. When deployed, you can submit jobs to your model and monitor job states.
Before you begin
- Log in to IBM Cloud.
- Create your API
key. Copy or download it from the API key successfully created open
window (you cannot access it again when you close this window).
- Optional: Create a watsonx.ai Runtime service.
- Select a watsonx.ai Runtime instance from the list of
AI/Machine Learning services in the IBM Cloud Resource list
view.
Copy the Name, GUID, and CRN from the information pane for your watsonx.ai Runtime instance. (To open the information pane, click anywhere in the row next to your watsonx.ai Runtime service name, but not on the name itself. The information pane then opens in the same window.)
- Optional: Create a Cloud Object Storage.
- Select a Cloud Object Storage instance from the list of Storage resources
in the IBM Cloud
Resource list view.
Copy the Name and CRN from the information pane for your storage instance.
- Optional: Create a deployment space, from the https://dataplatform.cloud.ibm.com user interface. You can also create a deployment space by using the REST API. See Creating a deployment space using the REST API.
- Select a deployment space from the list of Deployments.
Copy the Space GUID from the Manage > General tab. For more information, see Deployment spaces.
About this task
These instructions assume that you have already built your Decision Optimization model.
Procedure
To deploy a Decision Optimization model:
Results
Example
See the Deploying a DO model with WML sample for an example of how to deploy a Decision Optimization model, create and monitor jobs, and get solutions by using the watsonx.ai Runtime Python Client. This notebook uses the diet sample for the Decision Optimization model and takes you through the whole procedure without using the Decision Optimization experiment UI. This sample and the RunDeployedModel and ExtendWMLSoftwareSpec notebooks are located in the jupyter folder of the DO-samples. Select the relevant product and version subfolder. When downloaded, you can add these Jupyter notebooks to your project.
See also the REST API example.