Navigation

  • index
  • modules |
  • next |
  • previous |
  • CPLEX Python API documentation »
  • Python tutorial

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

Table of Contents

Contents:

  • Cplex
  • Python tutorial
    • 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
  • CPLEX for Python users

Previous topic

cplex._internal package

Next topic

Design of CPLEX in a Python application

This Page

  • Show Source

Quick search

«

Navigation

  • index
  • modules |
  • next |
  • previous |
  • CPLEX Python API documentation »
  • Python tutorial
© Copyright IBM Corporation. Created using Sphinx 9.1.0.