Skip to content

Commit 29f2b12

Browse files
authored
Merge pull request #3984 from mrmundt/cplex-update
Move `cplex` and `docplex` to pypi-only installs
2 parents ecbf119 + ebe1285 commit 29f2b12

3 files changed

Lines changed: 18 additions & 12 deletions

File tree

.github/workflows/test_branches.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ jobs:
266266
conda-remove-defaults: true
267267
auto-update-conda: false
268268
python-version: ${{ matrix.python }}
269-
channels: conda-forge, gurobi, ibmdecisionoptimization, fico-xpress
269+
channels: conda-forge, gurobi, fico-xpress
270270
use-mamba: true
271271

272272
# This is necessary for qt (UI) tests; the package utilized here does not
@@ -403,9 +403,6 @@ jobs:
403403
TIMEOUT_MSG="TIMEOUT: killing conda install process"
404404
PYVER=$(echo "py${{matrix.python}}" | sed 's/\.//g')
405405
echo "Installing for $PYVER"
406-
#
407-
# Disallow cplex 12.9 (caused segfaults in tests)
408-
CPLEX='cplex>=12.10'
409406
# xpress.init() (xpress 9.5.1 from conda) hangs indefinitely
410407
# on GHA/Windows under Python 3.10 and 3.11. Exclude that
411408
# release on that platform.
@@ -418,7 +415,7 @@ jobs:
418415
else
419416
XPRESS='xpress'
420417
fi
421-
for PKG in "$CPLEX" docplex gurobi "$XPRESS" cyipopt pymumps scip pyscipopt; do
418+
for PKG in gurobi "$XPRESS" cyipopt pymumps scip pyscipopt; do
422419
echo ""
423420
echo "*** Install $PKG ***"
424421
echo ""
@@ -467,6 +464,12 @@ jobs:
467464
echo "WARNING: $PKG is not available"
468465
fi
469466
done
467+
# As of June 2026, cplex/docplex want their users to move towards
468+
# pypi and away from conda. Particularly:
469+
# The CPLEX and CP Optimizer Python interfaces are no longer
470+
# delivered inside CPLEX Optimization Studio, but can be
471+
# installed directly from PyPI.
472+
PYPI_DEPENDENCIES="$PYPI_DEPENDENCIES cplex docplex"
470473
fi
471474
# Re-try Pyomo (optional) dependencies with pip
472475
echo ""

.github/workflows/test_pr_and_main.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ jobs:
319319
conda-remove-defaults: true
320320
auto-update-conda: false
321321
python-version: ${{ matrix.python }}
322-
channels: conda-forge, gurobi, ibmdecisionoptimization, fico-xpress
322+
channels: conda-forge, gurobi, fico-xpress
323323
use-mamba: true
324324

325325
# This is necessary for qt (UI) tests; the package utilized here does not
@@ -456,9 +456,6 @@ jobs:
456456
TIMEOUT_MSG="TIMEOUT: killing conda install process"
457457
PYVER=$(echo "py${{matrix.python}}" | sed 's/\.//g')
458458
echo "Installing for $PYVER"
459-
#
460-
# Disallow cplex 12.9 (caused segfaults in tests)
461-
CPLEX='cplex>=12.10'
462459
# xpress.init() (xpress 9.5.1 from conda) hangs indefinitely
463460
# on GHA/Windows under Python 3.10 and 3.11. Exclude that
464461
# release on that platform.
@@ -471,7 +468,7 @@ jobs:
471468
else
472469
XPRESS='xpress'
473470
fi
474-
for PKG in "$CPLEX" docplex gurobi "$XPRESS" cyipopt pymumps scip pyscipopt; do
471+
for PKG in gurobi "$XPRESS" cyipopt pymumps scip pyscipopt; do
475472
echo ""
476473
echo "*** Install $PKG ***"
477474
echo ""
@@ -520,6 +517,12 @@ jobs:
520517
echo "WARNING: $PKG is not available"
521518
fi
522519
done
520+
# As of June 2026, cplex/docplex want their users to move towards
521+
# pypi and away from conda. Particularly:
522+
# The CPLEX and CP Optimizer Python interfaces are no longer
523+
# delivered inside CPLEX Optimization Studio, but can be
524+
# installed directly from PyPI.
525+
PYPI_DEPENDENCIES="$PYPI_DEPENDENCIES cplex docplex"
523526
fi
524527
# Re-try Pyomo (optional) dependencies with pip
525528
echo ""

doc/OnlineDocs/getting_started/solvers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ the license requirements for their desired solver.
2828
- License |br| Docs
2929
* - cplex
3030
- ``pip install cplex``
31-
- ``conda install ‑c \ ibmdecisionoptimization cplex``
31+
- N/A
3232
- `License <https://www.ibm.com/products/ilog-cplex-optimization-studio/pricing>`__
3333
`Docs <https://www.ibm.com/docs/en/icos/latest?topic=cplex-installing>`__
3434
* - CPoptimizer
3535
- ``pip install cplex docplex``
36-
- ``conda install ‑c \ ibmdecisionoptimization \ cplex docplex``
36+
- N/A
3737
- `License <https://github.com/IBMDecisionOptimization/docplex-doc/blob/master/LICENSE.txt>`__
3838
`Docs <https://ibmdecisionoptimization.github.io/docplex-doc/getting_started_python.html>`__
3939
* - cuOpt

0 commit comments

Comments
 (0)