Skip to content

Commit

Permalink
SCIP returns LpStatusUnbounded when the problem is unbounded (#801)
Browse files Browse the repository at this point in the history
* SCIP returns LpStatusUnbounded when the problem is unbounded

* add SCIP_PY to github actions

---------

Co-authored-by: Franco Peschiera <pchtsp@gmail.com>
  • Loading branch information
MBradbury and pchtsp authored Feb 21, 2025
1 parent bfdc672 commit 80b703a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,8 @@ jobs:
- name: Install swat
run: |
python -m pip install swat
- name: Install SCIP_PY
run: |
python -m pip install pyscipopt
- name: Test with pulptest
run: pulptest
2 changes: 1 addition & 1 deletion pulp/tests/test_pulp.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ def test_elastic_constraints_penalty_unbounded(self):
elif self.solver.__class__ is GLPK_CMD:
# GLPK_CMD Does not report unbounded problems, correctly
pulpTestCheck(prob, self.solver, [const.LpStatusUndefined])
elif self.solver.__class__ in [GUROBI_CMD, SCIP_CMD, FSCIP_CMD, SCIP_PY]:
elif self.solver.__class__ in [GUROBI_CMD, FSCIP_CMD]:
pulpTestCheck(prob, self.solver, [const.LpStatusNotSolved])
elif self.solver.__class__ in [CHOCO_CMD]:
# choco bounds all variables. Would not return unbounded status
Expand Down

0 comments on commit 80b703a

Please sign in to comment.