Purpose and prerequisites

Explains what to do in this tutorial and where to find the files.

When you execute a run configuration, information about execution time, memory consumption, and model extraction is collected as part of the execution. When execution stops, the information appears as a table in the Profiler output window.

This tutorial uses models solved with the CPLEX engine but all the features described work in the same way with models solved by the CP Optimizer engine.

Important:

In this tutorial, “faster” and “consuming less memory” may apply both to creating the model and to searching for solutions. This tutorial gives hints only on how to improve the model creation part. For the model solving part, the tutorial explains what kind of information the profiler can display. Using this information to make the model solve faster falls out of the scope of this documentation.

In other words, this tutorial does not explain how to write a better model that finds an optimal solution faster.

Prerequisites

It is assumed that you know how to work with projects in the IDE. If this is not the case, read Getting Started with the IDE first.

What you are going to do

The tutorial is based on two different examples:

Where to find the files

The profiler example is supplied as the model profiler.mod included in the profiler project at the following location:

<Install_dir>\opl\examples\opl\profiler\

The scalable warehouse example is a run configuration of the warehouse project at the following location:

<Install_dir>\opl\examples\opl\warehouse\

where <Install_dir> is your installation directory.

Note:

You will open this OPL project and all projects in these tutorials using the New Example wizard, which allows you to open and work with a copy of the distributed example, leaving the original example in place. If you need a reminder of how to use the New Example wizard, see Opening distributed examples in the CPLEX Studio IDE.