Design of CPLEX in a Python application

An application of CPLEX in the Python programming language uses Python objects.

The Python API of CPLEX consists of files in the directory where you installed the product (referred to here as yourCPLEXHome).

The primary class in the module cplex is the class Cplex. It encapsulates the mathematical formulation of an optimization problem together with information that you, the user, specify about how CPLEX should solve the problem. The class Cplex provides methods for modifying a problem, solving the problem, and querying both the problem itself and its solution. The methods of the class Cplex are grouped into categories of related functionality. For example, methods for adding, modifying, and querying data related to variables are contained in the member variables of the class Cplex.