Modeling

This page introduces the basic concepts of modeling optimization problems in idol. We will discuss how to create optimization models and add variables, constraints and objective functions to that model. We will also see how to access the different components of an existing model.

All classes which are used for modeling (standard) optimization problems can be accessed by including #include <idol/modeling.h>.

To simplify things, we will use the namespace idol in the following examples. This dispenses us from prefixing every class with idol::. For instance, we will use Model instead of idol::Model.

Let’s get started.