Meet the Python API¶
Introduces methods of the class Cplex .
In the Python API of CPLEX, the class Cplex encapsulates an optimization problem and provides methods to create and modify the model, to solve the problem, and to query the solution. The class Cplex also offers methods to read data, write results, or populate a model. Also within this class, there are groups of methods that facilitate your management of variables, linear constraints, and the objective function of your model as well as your analysis of the solution. For samples of these methods at work, see the examples diet.py and rates.py distributed with the product.