Binary distribution of the COIN-OR Branch and Cut (CBC) MILP solver for Python. Provides a precompiled CBC binary via Python package, enabling mixed-integer linear programming. Current version 2.929. Release cadence is irregular; follows upstream CBC releases.
pip install cbcboxVerified import paths — ran on the pinned version, not inferred.
Verifies that the CBC binary shipped with cbcbox exists. Then use with PuLP or or-tools by specifying the solver path.
Use the conda-forge version of CBC or compile from source if your platform lacks a wheel.
Run: import subprocess; subprocess.run(['chmod', '+x', cbc_path])
Check for the existence of the binary rather than pinning a specific version.
Install a modeling library like PuLP: `pip install pulp` and then set solver path to cbcbox's CBC binary.
Run `pip install cbcbox` in the correct Python environment.
Ensure you are on a supported platform (Linux x86_64, macOS x86_64). For others, install CBC via conda or compile from source.
Run `import subprocess; subprocess.run(['chmod', '+x', str(cbc_path)])` after importing cbcbox.