CyLP is a Python interface for the COIN-OR Linear Programming (CLP), COIN-OR Branch and Cut (CBC), and COIN-OR Cut Generation Library (CGL) solvers. It provides a modeling layer similar to PuLP but directly wraps the COIN-OR solvers for efficient linear and mixed-integer programming. Version 0.94.0 is current; release cadence is intermittent.
pip install cylpVerified import paths — ran on the pinned version, not inferred.
Standard quickstart: define a CyLP model, create a CyClpSimplex solver, solve, and print solution.
For new code, consider using CyClpSimplex.addColumn/addRow methods or switch to a more actively maintained package like PuLP if needed.
Use 'pip install cylp' and if it fails, ensure build dependencies are installed. Check PyPI for wheel availability.
Update imports: change 'from cylp import CyClpSimplex' to 'from cylp.cy import CyClpSimplex'.
Always use 1-based indexing when referring to variable IDs in lower-level API calls.
Use 'from cylp.cy import CyClpSimplex' instead of 'from cylp import CyClpSimplex'.
After calling solver.primal(), access solution via solver.primalVariableSolution if using CyLPModel; otherwise use solver.getColSolution().
Ensure column/row indices start from 1, not 0. For example, in addColumn, the column numbers are 1-indexed.