Table of contents

Create new scenario (Decision Optimization)

To solve with different versions of your model or data you can create new scenarios in the Decision Optimization experiment UI.

About this task

You can change your input data to examine the effects on the model. As mentioned, this could take the form of excluding hot dog from the solution to generate a vegetarian variant of the diet.


  1. Click the Open scenario pane icon Open scenario pane button to open the Scenario panel.
  2. Use the Create Scenario drop-down menu to create a new scenario from the current one.
  3. Add a name for the duplicate scenario and click Create.
  4. Working in your new scenario, in the Prepare data view, open the diet_food data table in full mode.
  5. Locate the entry for Hotdog at row 9, and set the qmax value to 0 to exclude hot dog from possible solutions.
  6. Switch to the Build model view and run the model again.
  7. You can see the impact of your changes on the solution by switching from one scenario to the other.


The vegetarian variant of the diet excludes hot dog from the solution but adds raisin bran and adjusts quantities of other foods.

In the Visualization view, the solution is displayed for the current scenario in the Explore solution page. To add another chart to display the previous scenario, click the Chart icon and then edit it. In the chart widget editor that opens, give this chart a name and select Scenario 1 from the Add scenario drop-down menu in the Scenarios section and remove Current Scenario. Select solution in the Table section. Close the Chart Widget Editor to save your updates. You now have two bar charts displaying the two scenarios in your Visualization view.

You can change the type of chart and its display attributes. For example, to see the raisin bran in the bar chart, change the width to 1000 in the JSON tab of the Chart widget editor.

You can view summary information for all your scenarios at a glance in the Overview pane. By selecting a scenario and clicking the three dots, you can perform actions such as duplicate, rename, generate a Python notebook, export the scenario, or save it for deployment, for any selected scenario in this view. See Overview for more information on how to configure this pane.