Does CPLEX Optimization Studio 22.1.1 support Python 3.11?

Created by Guang Feng on Mon, 07/22/2024 - 12:57
Published URL:
https://www.ibm.com/support/pages/node/7160884
7160884

Question & Answer


Question

Does CPLEX Optimization Studio 22.1.1 support Python 3.11?

Answer

CPLEX Optimization Studio 22.1.1 already supports Python 3.11. However, it must be installed online by following the steps below:

  1. run "pip install cplex"
  2. run "pip install docplex"
  3. The version downloaded online is the community edition. If you have the version of CPLEX Optimization Studio 22.1.1 without dimension limits, replace the binary files with the ones without dimension limits.

We are providing a script make_full.py_.zip to do step 3 on all platforms.

With PATH to CPLEX 22.1.1 specified, the script copies the binary files automatically. Here is a sample run in a test environment

(311venv) C:\ILOG\CPLEX_Studio2211\cplex\examples\src\python>python make_full.py C:\ILOG\CPLEX_Studio2211

Performing copies:

C:\ILOG\CPLEX_Studio2211\cplex\bin\x64_win64\cplex2211.dll -> C:\Python\311venv\Lib\site-packages\cplex\_internal\cplex2211.dll

C:\ILOG\CPLEX_Studio2211\cplex\bin\x64_win64\cplex2211.dll -> C:\Python\311venv\Scripts\cplex2211.dll

C:\ILOG\CPLEX_Studio2211\cpoptimizer\bin\x64_win64\cpoptimizer.exe -> C:\Python\311venv\Scripts\cpoptimizer.exe

Internal Use Only

Reviewed by Paul Shaw on July 22, 2024 Pacific Time.

[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSSA5P","label":"IBM ILOG CPLEX Optimization Studio"},"ARM Category":[{"code":"a8m3p0000006wlmAAA","label":"CPLEX Optimization Studio-\u003EHow to"},{"code":"a8m3p0000006wlqAAA","label":"CPLEX Optimization Studio-\u003EInstall and special configurations"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"22.1.1"}]

Document Information

Modified date:
22 July 2024

UID

ibm17160884