Skip to content

Commit 0a72ee3

Browse files
authored
Merge branch 'main' into doc-mutable-params
2 parents cf711a2 + 8bd2696 commit 0a72ee3

File tree

3 files changed

+44
-12
lines changed

3 files changed

+44
-12
lines changed

.github/workflows/test_branches.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,14 @@ jobs:
304304
python -m pip install --cache-dir cache/pip pymysql || \
305305
python -m pip install --cache-dir cache/pip pymysql
306306
if test -z "${{matrix.slim}}"; then
307-
python -m pip install --cache-dir cache/pip 'cplex!=22.1.2.1' docplex \
307+
# Disallow cplex 22.1.2.1 because it errors fatally when
308+
# computing IIS on python 3.13 and 3.14
309+
if [[ ${{matrix.python}} =~ 3.1[34] ]]; then
310+
CPLEX='cplex!=22.1.2.1'
311+
else
312+
CPLEX='cplex'
313+
fi
314+
python -m pip install --cache-dir cache/pip "$CPLEX" docplex \
308315
|| echo "WARNING: CPLEX Community Edition is not available"
309316
python -m pip install --cache-dir cache/pip gurobipy \
310317
|| echo "WARNING: Gurobi is not available"
@@ -375,6 +382,18 @@ jobs:
375382
# possibly if it outputs messages to stderr)
376383
conda install --update-deps -q -y python="${{matrix.python}}" $CONDA_DEPENDENCIES
377384
if test -z "${{matrix.slim}}"; then
385+
TIMEOUT_MSG="TIMEOUT: killing conda install process"
386+
PYVER=$(echo "py${{matrix.python}}" | sed 's/\.//g')
387+
echo "Installing for $PYVER"
388+
#
389+
# Disallow cplex 22.1.2 and 22.1.2.1, as they error fatally when
390+
# computing IIS on Python 3.13 and 3.14
391+
# Disallow cplex 12.9 (caused segfaults in tests)
392+
if [[ ${{matrix.python}} =~ 3.1[34] ]]; then
393+
CPLEX='cplex>=12.10,<22.1.2|>22.1.2.1'
394+
else
395+
CPLEX='cplex>=12.10'
396+
fi
378397
# xpress.init() (xpress 9.5.1 from conda) hangs indefinitely
379398
# on GHA/Windows under Python 3.10 and 3.11. Exclude that
380399
# release on that platform.
@@ -387,10 +406,7 @@ jobs:
387406
else
388407
XPRESS='xpress'
389408
fi
390-
TIMEOUT_MSG="TIMEOUT: killing conda install process"
391-
PYVER=$(echo "py${{matrix.python}}" | sed 's/\.//g')
392-
echo "Installing for $PYVER"
393-
for PKG in 'cplex>=12.10' docplex gurobi "$XPRESS" cyipopt pymumps scip; do
409+
for PKG in "$CPLEX" docplex gurobi "$XPRESS" cyipopt pymumps scip; do
394410
echo ""
395411
echo "*** Install $PKG ***"
396412
echo ""

.github/workflows/test_pr_and_main.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,14 @@ jobs:
356356
python -m pip install --cache-dir cache/pip pymysql || \
357357
python -m pip install --cache-dir cache/pip pymysql
358358
if test -z "${{matrix.slim}}"; then
359-
python -m pip install --cache-dir cache/pip 'cplex!=22.1.2.1' docplex \
359+
# Disallow cplex 22.1.2.1 because it errors fatally when
360+
# computing IIS on python 3.13 and 3.14
361+
if [[ ${{matrix.python}} =~ 3.1[34] ]]; then
362+
CPLEX='cplex!=22.1.2.1'
363+
else
364+
CPLEX='cplex'
365+
fi
366+
python -m pip install --cache-dir cache/pip "$CPLEX" docplex \
360367
|| echo "WARNING: CPLEX Community Edition is not available"
361368
python -m pip install --cache-dir cache/pip gurobipy \
362369
|| echo "WARNING: Gurobi is not available"
@@ -427,6 +434,18 @@ jobs:
427434
# possibly if it outputs messages to stderr)
428435
conda install --update-deps -q -y python="${{matrix.python}}" $CONDA_DEPENDENCIES
429436
if test -z "${{matrix.slim}}"; then
437+
TIMEOUT_MSG="TIMEOUT: killing conda install process"
438+
PYVER=$(echo "py${{matrix.python}}" | sed 's/\.//g')
439+
echo "Installing for $PYVER"
440+
#
441+
# Disallow cplex 22.1.2 and 22.1.2.1, as they error fatally when
442+
# computing IIS on Python 3.13 and 3.14
443+
# Disallow cplex 12.9 (caused segfaults in tests)
444+
if [[ ${{matrix.python}} =~ 3.1[34] ]]; then
445+
CPLEX='cplex>=12.10,<22.1.2|>22.1.2.1'
446+
else
447+
CPLEX='cplex>=12.10'
448+
fi
430449
# xpress.init() (xpress 9.5.1 from conda) hangs indefinitely
431450
# on GHA/Windows under Python 3.10 and 3.11. Exclude that
432451
# release on that platform.
@@ -439,10 +458,7 @@ jobs:
439458
else
440459
XPRESS='xpress'
441460
fi
442-
TIMEOUT_MSG="TIMEOUT: killing conda install process"
443-
PYVER=$(echo "py${{matrix.python}}" | sed 's/\.//g')
444-
echo "Installing for $PYVER"
445-
for PKG in 'cplex>=12.10' docplex gurobi "$XPRESS" cyipopt pymumps scip; do
461+
for PKG in "$CPLEX" docplex gurobi "$XPRESS" cyipopt pymumps scip; do
446462
echo ""
447463
echo "*** Install $PKG ***"
448464
echo ""

doc/OnlineDocs/getting_started/solvers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ the license requirements for their desired solver.
4444
* - cyipopt
4545
- ``pip install cyipopt``
4646
- ``conda install ‑c conda‑forge cyipopt``
47-
- `License <https://cyipopt.readthedocs.io/en/stable/#copyright>`__
48-
`Docs <https://cyipopt.readthedocs.io/en/stable/install.html>`__
47+
- `License <https://cyipopt.readthedocs.io/stable/#copyright>`__
48+
`Docs <https://cyipopt.readthedocs.io/stable/install.html>`__
4949
* - glpk
5050
- N/A
5151
- ``conda install ‑c conda‑forge glpk``

0 commit comments

Comments
 (0)