3.6 Python-MIP (Python – open source)

Python-MIP is another high-performance collection of Python tools for the modeling and solution of Mixed-Integer Linear programs (MIPs). Its syntax was inspired by Pulp, but the package also provides access to advanced solver features like cut generation, lazy constraints, MIP starts, and solution pools. We use the queens problem on a chessboard to give a glimpse of its syntax.

   3.6.1 The n-Queens Problem (queens)