Suppress constraint output in Python
AnsweredHi. Could someone please write out a piece of code for me to suppress constraint output in Python. Thank you.
0
-
Hi Prasanna,
IPython/Jupyter displays the result of the last line of a cell by default - this isn't specific to gurobipy or addConstrs. You can suppress this output by ending the line with a semi-colon
m.addConstrs(...);
or by assigning the result to a Python variable:
constr_3_1 = m.addConstrs(...)
Best regards,
Simon1
Please sign in to leave a comment.
Comments
1 comment