coin-or / python-mip

Python-MIP: collection of Python tools for the modeling and solution of Mixed-Integer Linear programs
Eclipse Public License 2.0
525 stars 92 forks source link

String Representation of Constraint #112

Closed amichuda closed 4 years ago

amichuda commented 4 years ago

Hi!

Thank you for developing this package, I've been using it for the last six months and it's been great!

Is there a way to give a string representation of a constraint? Something like:

>>> m.constr_by_name("constraint_1")
"x_1*c + x_2*d <= h"

Or something like that? Is that possible?

amichuda commented 4 years ago

NVM, I finally figured it out. Again, thank you for the package!