Skip to content

Commit

Permalink
migrated to pulp 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
juanbc committed Jan 17, 2024
1 parent 549a026 commit 5a6cb28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ classifiers = [
]
urls = { Homepage = "https://scikit-criteria.quatrope.org/", Repository = "https://github.com/quatrope/scikit-criteria" }
dependencies = [
"numpy",
"numpy<2.0",
"pandas",
"scipy",
"jinja2",
"custom_inherit",
"seaborn",
"pulp",
"pulp>=2.8,<2.9",
"Deprecated",
"scikit-learn>=1.3,<1.4",
"matplotlib!=3.6.1",
Expand Down
2 changes: 1 addition & 1 deletion skcriteria/utils/lp.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

def is_solver_available(solver):
"""Return True if the solver is available."""
return solver is None or solver.upper() in ["PULP"] + pulp.list_solvers(
return solver is None or solver.upper() in ["PULP"] + pulp.listSolvers(
onlyAvailable=True
)

Expand Down

0 comments on commit 5a6cb28

Please sign in to comment.