$npx skillfedfor your agent

mip

Python tools for Modeling and Solving Mixed-Integer Linear Programs (MIPs)

With conditionsPyPI MathematicsReleased Mar 2026605.1K downloads / mocopyleft licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — mip-1.17.6-py3-none-any.whl
v1.17.6 · released 2026-03-23 · Python >=3.10 · 2 runtime deps: cffi, cbcbox

Yes, if you need to model and solve mixed-integer linear programs in Python. The package is actively maintained, has low install friction, supports current Python versions, and offers a clean API with advanced solver features. The EPL-2.0 copyleft license requires compliance in derivative works. No known security vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or newer; cbcbox solver dependency must be available
  • Low install friction with a pure-wheel distribution.
  • The package is actively maintained (last commit 2026-06-09) and in production-stable status.

License · maintenance · safety

copyleft license (copyleft) — Licensed under Eclipse Public License 2.0 (EPL-2.0), a copyleft license. You may use and modify the package freely, but derivative works and distributions must carry the same license terms and include a copy of the EPL-2.0 agreement.

last release 2026-03-23 (144 days) · last repo commit 2026-06-09 · 597 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 605,067 downloads/mo, #5,800 on PyPI

Verify before relying

pip install mip
from mip import Model, xsum, BINARY
m = Model()
x = [m.add_var(var_type=BINARY) for _ in range(10)]
m.objective = xsum(x)
m.optimize()
  • Whether cbcbox is automatically installed or requires separate system-level solver setup
  • Performance comparison claims and their test conditions
  • Compatibility with Gurobi solver integration beyond CBC
Same gist for agents: .md · .json

What it is and what it does

Python MIP is a modeling and solving toolkit for mixed-integer linear programs, designed to make it easy to write optimization problems in Python using operator overloading and a high-level syntax. It communicates directly with native solver libraries via cffi, supporting both the open-source CBC solver and the commercial Gurobi solver with a single, solver-independent codebase.

The package provides advanced features like cut generation, lazy constraints, solution pools, and MIPStart heuristics for warm-starting searches. It requires Python 3.10 or newer and runs on CPython and PyPy. The main dependencies are cffi and cbcbox.

Use it for

  • Model and solve supply chain optimization, production scheduling, or resource allocation problems using a Pythonic syntax
  • Implement branch-and-cut algorithms with custom cut generators and lazy constraint callbacks for large-scale MIPs
  • Migrate optimization models from existing codebases by leveraging compatible syntax and solver-agnostic code
  • Explore multiple near-optimal solutions via solution pools during MIP search
  • Accelerate MIP model creation on PyPy for performance-critical applications

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to model and solve mixed-integer linear programs in Python.

The package is actively maintained, has low install friction, supports current Python versions, and offers a clean API with advanced solver features. The EPL-2.0 copyleft license requires compliance in derivative works. No known security vulnerabilities.

Install

mip on PyPI

Before you install

Low install friction with a pure-wheel distribution. The package is actively maintained (last commit 2026-06-09) and in production-stable status. Runtime depends on cffi and cbcbox.

Requires Python 3.10 or newer; cbcbox solver dependency must be available

License in practice

Licensed under Eclipse Public License 2.0 (EPL-2.0), a copyleft license. You may use and modify the package freely, but derivative works and distributions must carry the same license terms and include a copy of the EPL-2.0 agreement.

Quickstart

pip install mip
from mip import Model, xsum, BINARY
m = Model()
x = [m.add_var(var_type=BINARY) for _ in range(10)]
m.objective = xsum(x)
m.optimize()

Verify before relying

  • Whether cbcbox is automatically installed or requires separate system-level solver setup
  • Performance comparison claims and their test conditions
  • Compatibility with Gurobi solver integration beyond CBC

Package facts

Licensecopyleft license copyleft
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
cfficbcbox
MaintenanceActively maintained 144 days since the last release
Last repo commit
First released
Downloads605,067 / month, #5,800 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableLicense :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)Operating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Scientific/Engineering :: Mathematics

Evidence: mip-1.17.6-py3-none-any.whl

Tags

Capabilities
mixed integer linear programmingMIP solver pythonlinear optimization modelinginteger programming librarybranch and cut solvermathematical optimization pythonconstraint programming
Topics
optimizationoperations-researchsolver-integration
PyPI keywords
OptimizationLinear ProgrammingInteger ProgrammingOperations Research

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “mixed integer linear programming”

  • mipPython MIP models and solves mixed-integer linear programs (MIPs)…
  • xpresslibsPython interface to the FICO Xpress Optimizer for creating and…
  • highspyHighspy is a Python wrapper around HiGHS, a high-performance solver…

Give your agent the search over MCP, or paste the wish link into any chat.

More Mathematics packages

networkx Worth it
PyPI · Python Modules · released Dec 2025

NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.

BSD-3-Clausepure Python
290.9Mdownloads / mo
kiwisolver Worth it
PyPI · Mathematics · released Mar 2026

kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.

Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.

BSD-3-Clausecompiled wheel · 3.10+
205.5Mdownloads / mo
sympy Worth it
PyPI · Scientific/Engineering · released Apr 2025

SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.

BSD-3-Clausepure Python · 3.9+
196.4Mdownloads / mo
contourpy Worth it
PyPI · Information Analysis · released Jul 2025

ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.

BSD-3-Clausecompiled wheel · 3.11+
191.2Mdownloads / mo
torch With conditions
PyPI · Software Development · released Jul 2026

PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.

Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MITcompiled wheel · 3.10+
102.5Mdownloads / mo
onnxruntime Worth it
PyPI · Software Development · released Jul 2026

onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.

Install it if you have ONNX models to run in production or development.

MITcompiled wheel · 3.11+
89.3Mdownloads / mo

See also cylp · gurobipy · linopy · PuLP · ortools · cbcbox · pyomo · amplpy · docplex · clingo