Input data sources for Decision
Optimization deployment jobs
Last updated: Dec 05, 2024
Input data for Decision Optimization deployment jobs
When you submit a job you can include inline data, or reference your data in your
request. This data is then mapped to a file named with data identifier and used by the model. The
data identifier extension defines the format of the file used. You can define what input data you
want to use and how you collect it (as either inline or referenced data).
Inline data
Copy link to section
You can embed inline data in your request.
Tabular inline data
This example generates the corresponding diet_food.csv file that is used as the
model input file. Only csv files are supported.
This type of inline data is useful for files such as an OPL .dat file or an
.lp file.
"input_data": [{
"id":"model.lp",
"content":"<model encoded as base64 string>"
}]
Copy to clipboardCopied to clipboard
Referenced data
Copy link to section
When using data or connection assets for tabular data, use
.csv as the data-identifier extension in the id field, regardless
of the asset type. The data-connector makes the necessary transformations, so that you can load data
without needing to change the format of the data. You can thus use the same Decision
Optimization model with many different data-source types and formats by using a
data-connector to reference your data. If you use other data-identifier extensions, the data is
loaded as a raw-data binary-file without any transformation.
Data assets
You can use data asset references to locate any data asset present in your space and benefit
from the data-connector integration capabilities. To use data assets from a project, you must first
promote them to your space.
This example defines input data references to a data asset in a
space.
You can use connection assets to reference any data and then refer to the connection without
having to specify credentials each time. Referencing a secure connection without having to use
inline credentials in the payload also offers you better security. You can use the
id to identify connections. For example,
The <CONNECTION_ID> is the globally unique identifier for a
connection. You can find this identifier when you have created a connection and you then edit the
connection in your project. The identifier is visible in the Edit connection
window's URL.
For more information about the interaction properties that you can use in the
location field, see Platform connections in the main menu.
On the Connections page, select Connection resources > Connection
properties. Then select the Interaction properties > As a source
tab for the relevant connector. You might need to create a Platform assets catalog.
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.