passagemath-glpk provides a linear and mixed integer linear optimization backend using GLPK (GNU Linear Programming Kit) for the passagemath library. It enables the construction and solution of linear programming (LP) and mixed-integer linear programming (MILP) problems. Version 10.8.4 supports Python >=3.11,<3.15. The package is part of the passagemath ecosystem, which reimplements functionality previously provided by SageMath.
pip install passagemath-glpkVerified import paths — ran on the pinned version, not inferred.
Quickstart example: solve a simple MILP using GLPK backend.
Change import to 'from passagemath.glpk.backend import GLPKBackend'.
Explicitly pass solver='GLPK' when creating MixedIntegerLinearProgram.
Serialize solve calls or use multiprocessing with separate processes.