Overview of the Tutorial

Reviews the design principles of the OPL APIs, where to locate the libraries and their respective code samples in the distribution, and presents the different sections of this tutorial.

The IBM ILOG OPL Interfaces library enables users to integrate OPL modeling with IBM ILOG Concert Technology.

These interfaces are designed to fulfill several goals, chiefly:

  • separate the model from the data

  • separate the modeling phase from the solving phase

  • instantiate the same OPL model definition with different data

  • embed with IBM ILOG Concert Technology

  • provide custom data easily

OPL Interfaces are available in C++, Java, and .NET. See Introduction for a general presentation of the Interfaces in the three languages. See also the API Reference Manuals in the OPL Interfaces section of the documentation.

Most of the code snippets used in this tutorial are extracted from the mulprod example, which exists in three languages at the following locations:

<Install_dir>\opl\examples\opl_interfaces\cpp\src\mulprod.cpp

<Install_dir>\opl\examples\opl_interfaces\java\mulprod\src\mulprod\Mulprod.java

<Install_dir>\opl\examples\opl_interfaces\dotnet\x64_windows_msvc14\CSharp\Mullprod\Mulprod.cs

A general presentation of the code samples is provided in Interfaces examples in the Language and Interfaces Samples manual.

In this tutorial, the .NET code samples from Mulprod.vb are written in Visual Basic. The instructions that cannot be illustrated in each language are given by default in C++. This tutorial walks you through the procedures.