{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/17"},{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering/8"}],"enrichment":{"capability":"swiglpk provides direct Python bindings to the GNU Linear Programming Kit (GLPK) C library, enabling you to formulate and solve linear and mixed-integer optimization problems from Python code.","skillfed_tags":["optimization","linear-programming","glpk-bindings"],"use_cases":["Solve linear programming (LP) and mixed-integer programming (MIP) problems where you need direct control over the underlying GLPK solver.","Build a domain-specific optimization framework or mathematical modeling language on top of GLPK's C API.","Port existing C/C++ GLPK code to Python while keeping the same algorithmic structure and function calls.","Integrate GLPK into a scientific computing pipeline where other components also use low-level C bindings.","Access GLPK features or tuning parameters not exposed by higher-level Python wrappers."],"what_it_does":"swiglpk is a thin, low-level wrapper around GLPK's C API generated by SWIG. It exposes the full C interface directly to Python without abstraction, allowing you to call GLPK functions like glp_create_prob(), glp_simplex(), and glp_get_obj_val() almost exactly as you would in C. This means you work with raw arrays, manual memory management, and C-style function calls\u2014it is not a high-level mathematical programming language.\n\nThe package is useful when you need direct access to GLPK's capabilities or when you are building a higher-level abstraction on top of it. It ships with prebuilt wheels for all major platforms and Python versions, so installation typically requires only pip install with no compilation step. The trade-off is that the API is verbose and low-level; for most users, a wrapper like optlang is recommended for cleaner, more Pythonic problem formulation.","worth_installing":"Yes, if you need direct GLPK access and accept GPL v3 licensing. The package is actively maintained, has no known vulnerabilities, and installs cleanly via prebuilt wheels. However, if you want a Pythonic API for formulating optimization problems, use optlang or another high-level wrapper instead; swiglpk is intentionally low-level and verbose. Proprietary projects cannot use it due to GPL v3 copyleft."},"id":"swiglpk","links":{"html":"https://skillfed.io/packages/swiglpk","md":"https://skillfed.io/packages/swiglpk.md","pypi":"https://pypi.org/project/swiglpk/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-02-05","license_spdx":null,"license_treatment":"copyleft","name":"swiglpk","python_support":"unspecified","summary":"swiglpk - Simple swig bindings for the GNU Linear Programming Kit"},"popularity":{"monthly_downloads":89948,"position":13627,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"5.0.13"}
