Intermediate solutions in a Decision
Optimization
experiment
Last updated: Jun 05, 2024
Intermediate solutions in a Decision Optimization experiment
You can choose to display intermediate solutions while you are running a model in a
Decision
Optimizationexperiment.
Intermediate solutions can be useful in certain cases. For example, intermediate solutions
can give you an idea of whether the current solution found is good enough for your purposes without
waiting to reach the optimal solution. During the solve, bounds are determined for the optimal
solution and you can see the gap between the current feasible solution and the optimal solution with
intermediate solution values. If the current solution is close enough for your purposes, you can
stop the run (especially if it's a large model). However, sometimes if the model is fast to solve
you might not see the graph that illustrates the gap. Another example is for debugging purposes:
intermediate solutions might help you understand why a solve fails.
During the run, a
graphical display shows the feasible solutions that are obtained until the optimal solution is
found. If you have set the intermediate solution delivery parameter in the
run configuration to a certain frequency, a sample of intermediate solutions is displayed with that
frequency. To see these intermediate solutions, you must click New data
available. A maximum of 3 intermediate solutions are displayed at a time. You can use
the tabs to see Engine statistics, KPIs, the
Log file, and you can see the solution tables of the last sampled solution in
the Solution assets tab. To obtain intermediate solutions for Python DOcplex
models, you must implement a specific callback in your model. See the
IntermediateSolutions sample in the Model_Builder folder of
the DO-samples in the Decision Optimization GitHub. Select the relevant product and version subfolder.
When the solve is completed, a download
option appears with three dots where you can download the statistics.
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.