Generating a notebook from a scenario in a
Decision
Optimization
experiment
Last updated: Aug 06, 2024
Generating a notebook from a scenario in a Decision Optimization experiment
You can generate Python notebooks for existing Python or Modeling Assistant models from your Decision
Optimizationexperiment.
Procedure
Copy link to section
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
Copy link to section
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
Optimizationexperiment.
If you have multiple files in the Build modelview, 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.
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.