How can I get integer solutions with scipy.optimize.linprog?

From the docs:

method : str, optional Type of solver. At this time only ‘simplex’ is

Simplex cannot handle integrality constraints so you cannot solve integer programming problems with scipy.optimize.linprog yet. You can try other libraries like PuLP, Pyomo or CVXOPT.

Leave a Comment