Run parameters and Environment
You can select various run parameters for the optimization solve in the Decision Optimization experiment UI.
CPLEX runtime version
As CPLEX engine performance improves with each new version, older versions are deprecated and removed over time. Runtimes, based on these engines, are used in building and deploying Decision Optimization models. Currently, the do_22.1 runtime, based on CPLEX 22.1 is used automatically when creating and running scenarios. The do_20.1 runtime based on CPLEX 20.1 is also available. You can view and change your CPLEX runtime in the experiment Overview by opening the Environment tab of the Information pane and selecting one of the available environments for your type of model (Python, OPL, CPLEX, CPO). See Overview for more details.
You can view and change the Python environment in the experiment Overview on the Environment tab of the Information pane. For more information, see Overview and Configuring environments and adding Python extensions.
Run configuration parameters
When you click the Configure run icon next to the Run button in the Build model view, a window opens showing you the currently set parameter values.Here you can select and edit different run configuration parameters.
You can click Add parameter and then choose from the following parameters from the Select Parameters drop-down menu.
||Number||You can use this parameter to set a time limit in seconds.|
||You can use this parameter to define the level of detail provided by the engine log. The
default value is
||Number||You can use this parameter to set a job memory limit in MB.|
||You can use this parameter to obtain a sample of intermediate solutions while the solve is
running. The default value is
IntermediateSolutionssample in the Model_Builder folder of the DO-samples in the Decision Optimization GitHub. Select the relevant product and version subfolder.
If you choose Custom parameter from the Select Parameters drop-down menu, you can add the following advanced parameters.
|Modeling Assistant only
|Python names for CPLEX and CPO parameters can be entered with the prefixes
After you set the run configuration parameters, they will be used with those values for all subsequent runs for that scenario.
You can remove set parameters by hovering over the parameter and clicking the Remove icon.
Environment for scenario
The Environment tab in this pane shows you the default run environment that is being used for your experiment.
The Decision Optimization environment currently supports Python 3.10. The default version is Python 3.10.
See the EnvironmentAndExtension example in the Model_Builder folder of the DO-samples in the Decision Optimization GitHub. This example uses an environment with an extension that contains a library file and YAML code.
You can also select a different run environment for a particular scenario, without changing the default for all the other scenarios. See Selecting a different run environment for a particular scenario for more details.