Creating and executing a different configuration

Describes how to create a second run configuration, then populate and execute it.

You will now create a second run configuration, then populate and execute it.

To create and execute a second run configuration:

  1. In the selected project, right-click the Run Configurations folder and choose New > Run Configuration from the menu. A new run configuration with the default name Configuration2 is added.
    OPL Projects Navigator showing a newly created run configuration.
  2. Optionally, rename the run configuration, by selecting it, right-clicking and choosing Rename from the menu. In this example, Configuration2 is renamed Barrier.
    Renamed run configuration
  3. Drag and drop the files myFirstProject.mod, product.dat, and your new settings file newsettings.ops into the new Barrier run configuration.

    The OPL Projects Navigator should look like this.

    Figure 1. A run configuration with different settings
    Barrier run configuration
  4. Right-click in the project and select Run > Barrier from the menu to execute the model with changed settings.

    The CPLEX® engine now uses Barrier as the value of the algorithm for continuous problems.

Observe the differences in the output tabs.

  • The Solutions tab displays the same solution (see Figure 2).

  • The Engine Log tab shows a different report.

    Figure 2. Engine Log for Barrier configuration
    Engine Log for Barrier configuration
  • The Statistics tab shows a different algorithm (Barrier) and number of iterations.

    Figure 3. Statistics for Barrier configuration
    screen capture of the Engine Statistics for the Barrier run configuration.

You can proceed to Examining a solution to the model to learn more about the execution process and its results.

See also: