Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Unified Supply Chain

Optimization analysis

  • Last UpdatedOct 06, 2025
  • 5 minute read

You can export detailed information about your case optimization to a JSON file, for further analysis and processing. This feature is available in the following components:

  • The Plan environment.

  • The Network environment.

  • The Case Stack environment.

To enable the feature, select the Enable Optimization Analysis check box in the Optimization Analysis page of the Run Settings dialog.

RunSettings_OptimizationAnalysis

Once optimization analysis is enabled, you can choose which data to export by selecting the relevant check boxes: Static Model Data, Static MIP Data and so on.

In a case stack, you can enable or disable optimization analysis for each case by selecting it from the Case list in the Run Settings dialog.

To export optimization data, follow these steps:

  1. In the Infeasibility Breaker Settings page of the Run Settings window, make sure that Activity is not set to Only When Infeasible. The Optimization Analyser is not compatible with this setting.

  2. Optimize the case(s).

  3. In the Optimization Analysis ribbon tab, click Extract. The Browse For Folder dialog box opens.

  4. Choose the folder where you want to save the JSON file. The folder you choose is automatically selected the next time you open this dialog box.

  5. Click OK. The JSON file is saved to the selected folder. The name of the file is the same as the name of the optimized case. For analytics and case stacks, multiple files are created, one for each case.

The Optimization Analyser overwrites existing files without prompting. Make sure you move or rename any files you want to keep.

Exporting optimization analysis data fails if the case name contains characters not allowed in Windows file names. These characters are: < > : " / \ | ? *. Rename the case before exporting again.

File structure

This is a high-level description of the contents of the file generated by the optimization analysis feature. One or more sections may be missing from your output depending on the configuration you chose in the Run Settings dialog.

  • Best-Run Index: the index, identifying each element in the Multistart Results array, corresponding to the best multi-start run.

  • Best-Run Seed: the number of the multi-start run which is returned to the user interface and used for reporting purposes. It corresponds to the highlighted row in the Multi-Start Metrics table. If multi-start is disabled, it is always equal to one.

  • Cluster Analysis: included if you have selected the Enable Cluster Analysis check box.

  • Model Statistics: information on the size of the optimization problem, such as the number of variables and equations. Includes information found in the Solution Metrics table.

  • Multistart Results: contains an array with information on each multi-start run. If multi-start is disabled, the array contains a single element. Each array element includes the following:

    • The Index uniquely identifies each array element.

    • The Iteration Summary array lists detailed statistics on each optimization iteration.

    • Several sections follow with lists of the largest quantities in the optimization problem, such as Largest Equation Marginals and Largest Flow Variables.

    • The Metrics section contains run metrics for the multi-start run.

    • Seed and Seed Start Time show the number of the multi-start run and the start date and time.

  • Run Information: basic data about the optimization run, such as model and case name, software version and start date and time.

  • Static Equation Data: information on static equations in the optimization problem.

  • Static MIP Entity Data: information on the mixed integer variables in the optimization problem.

  • Static Variable Data: information on static variables in the optimization problem.

Cluster Analysis

Cluster analysis is available as an optional addition to optimization analysis. This feature lets you identify and analyze plateaus for multi-start optimizations.

To enable cluster analysis, select the Enable Cluster Analysis check box in the Optimization Analysis page of the Run Settings dialog.

You can then choose the algorithm used to detect plateaus:

  • The Default algorithm uses absolute tolerance at the default value of 10-5.

  • The Plateau algorithm lets you set the tolerance level to a value of your choice.

  • The Normalised Gradient algorithm is based on the gradients between plateaus rather than the clustering within them.

When you optimize with cluster analysis enabled, the Cluster Analysis tool calculates the means and standard deviations of the objective functions in the plateaus, and of the degrees of freedom of the model in each plateau. This information is added to the Cluster Analysis section in the optimization analysis JSON report.

You can use the MultiStartSeeds additional run setting to limit the run to seeds that produce plateaus of interest. For instance, use the command MultiStartSeeds = 4, 8, 9, 16 to run seeds 4, 8, 9 and 16.

Contact Support (spiral.support@aveva.com) to receive an Excel workbook where you can load your JSON optimization analysis report to better investigate the differences between plateaus. The workbook presents a summary of the plateaus detected, a worksheet detailing the degrees of freedom for each run seed, statistics for the degrees of freedom within each plateau, and tools to help you identify and analyze areas of the model that might be contributing to local optima.

The following example shows a multi-start solution with two plateaus.

Multi-start results chart showing two plateaus

In the Cluster Analysis sheet of the workbook, two sets of columns let you identify degrees of freedom with significant differences between plateaus:

  • In the Zero Switch columns the True values identify degrees of freedoms that are on average zero on one plateau and on average non-zero on another.

  • In the Plateau Switch columns the True values identify degrees of freedom that on average are different in both plateaus but only vary by a small amount within each plateau.

The following image shows the degrees of freedom with True values for both the Zero Switch and Plateau Switch columns. A splitter output flow and feed volume flow are zero on one plateau and nonzero on the other, which may offer clues as to the model behavior that causes the plateaus. Further analysis is possible by applying different filters on the Type and Switch columns.

Paart of the Cluster Analysis Excel workbook, showing details about two plateaus

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in