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 multiple scenarios to test your model against a wide range of data and understand how robust the model is.
This example steps you through the process to generate multiple scenarios with a model. This makes it possible to test the performance of the model against multiple randomly generated data sets. It's important in practice to check the robustness of a model against a wide range of data. This helps ensure that the model performs well in potentially stochastic real-world conditions.
The example is the
model in the DO-samples.StaffPlanning
The example is structured as follows:
- The model
contains a default scenario based on two default data sets, along with five additional scenarios based on randomized data sets.StaffPlanning
- The Python notebook
contains the random generator to create the new scenarios in theCopyAndSolveScenarios
model.StaffPlanning
For general information about scenario management and configuration, see Scenarios in a Decision Optimization experiment.
For information about writing methods and classes for scenarios, see the Decision Optimization Client Python API documentation.