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: Aug 12, 2024
You can generate Python notebooks for existing Python or Modeling Assistant models from your Decision Optimization experiment.
Procedure
To generate a Python model from your current scenario:
- From either the scenario pane or from the Overview, click the menu icon
for the scenario that you want to generate a notebook from.
- Select Generate notebook.
- Enter a name for the notebook and click Generate.
Results
A Python notebook containing the Decision Optimization model is saved as an asset in your project.
You can then download this notebook to edit and debug it locally. Then when you re-import it into your project, you can import the model from your notebook into your Decision Optimization experiment.
If you have multiple files in the Build model view, these files are automatically referenced in the generated notebook so that you can read them from the notebook. The Python version for your generated notebook depends on the environment that you configured for your scenario. If the environment was automatically created for your scenario, the notebook uses the default Python version 3.11.