Saving and restoring results

You can save the results of a solve, keep a history of the saves and restore a saved version in the IDE.

After executing a model, you can save the results, keep a history of the saves and restore a saved version in the IDE. Here we use the BlendingMultiPeriod example to illustrate this feature.

Note: In the case of a solution pool, only the best solution is saved.
  1. Run the default configuration, either from the Run command in the menu bar, or from the contextual menu, as shown.

    ‘Run this’ contextual menu for a run configuration
  2. From the menu bar, select Run > Save results.

    File > Save results menu

    This action saves the results as displayed in the problem browser (data, decision variable values, expressions, constraints), as well as the .mod file and the log files (scripting log, solutions log, conflicts, relaxations, engine log, statistics and profiler).

  3. After you have saved a result, the Restore results option becomes active, either in the Run menu or in the contextual menu of the Run Configuration.

    File > Restore results menu

    The icon next to the LP formulation run configuration has a tiny clock attached to it, to indicate that it has saved results. Click Restore results.

  4. The history of saved results is displayed, and a summary of the selected result is shown.

    Result history

    Click the Restore button to display the results in the Problem Browser. You can then click on an object in the Problem Browser to display a read-only version of the corresponding .mod file in the editor. All the logs mentioned in step #2 are also restored.