Presenting the tutorial

CPLEX in the .NET framework supports creating a model, populating it with data, solving the problem, and displaying results of the solution.

This tutorial introduces CPLEX through Concert Technology in the .NET framework. It gives you an overview of a typical application and highlights procedures for:

  • Creating a model

  • Populating the model with data, either by rows, by columns, or by nonzeros

  • Solving that model

  • Displaying results after solving

This chapter concentrates on an example using C#.NET. There are also examples of VB.NET (Visual Basic in the .NET framework) delivered with CPLEX in yourCPLEXhome\examples\src\vb . Because of their .NET framework, those VB.NET examples differ from the traditional Visual Basic examples that may already be familiar to some CPLEX users.

In the standard distribution of the product, the file dotnet.html offers useful details about installing the product as well as compiling and executing examples.

Note:

This tutorial is based on a procedure-based learning strategy. The tutorial is built around a sample problem, available in a file that can be opened in an integrated development environment, such as Microsoft Visual Studio. As you follow the steps in the tutorial, you can examine the code and apply concepts explained in the tutorial. Then you compile and execute the code to analyze the results. Ideally, as you work through the tutorial, you are sitting in front of your computer with CPLEX and Concert Technology for .NET users already installed and available in Microsoft Visual Studio.