Python tutorial¶
Use CPLEX interactively in a Python session, or write an application using the Python API for CPLEX.
- Design of CPLEX in a Python application
- Starting the CPLEX Python API
- Accessing the module cplex
- Building and solving a small LP with Python
- Reading and writing CPLEX models to files with Python
- Selecting an optimizer in Python
- Example: reading a problem from a file lpex2.py
- Modifying and re-optimizing in the CPLEX Python API
- Example: modifying a model lpex3.py
- Using CPLEX parameters in the CPLEX Python API