Skip to content

Commit

Permalink
Fix logic for identifying NEOS solvers
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiirola committed Nov 21, 2024
1 parent 2915c08 commit 52ef915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyomo/neos/kestrel.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def getAvailableSolvers(self):
"""Return a list of all NNEOS solvers that this interface supports"""
allKestrelSolvers = self.neos.listSolversInCategory("kestrel")
_ampl = ':AMPL'
return sorted(s[: len(_ampl)] for s in allKestrelSolvers if s.endswith(_ampl))
return sorted(s[: -len(_ampl)] for s in allKestrelSolvers if s.endswith(_ampl))

def getSolverName(self):
"""
Expand Down

0 comments on commit 52ef915

Please sign in to comment.