Suppress Gurobi warning over Python interface

381 views
Skip to first unread message

Qi Chen

unread,
Nov 25, 2016, 8:44:00 PM11/25/16
to Pyomo Forum
Hi all -
Is there a solver option or flag that I can set to suppress this output from Gurobi?

Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored

All the best,
Qi

Siirola, John D

unread,
Nov 29, 2016, 10:28:51 AM11/29/16
to pyomo...@googlegroups.com

Qi,

 

Not that I know of.  Can you share with me how you are constructing the model?  This sounds like roundoff error in cut generation…  if that is the case, I think there are two possible solutions.  1) update your cut generation to check for very small coefficients and explicitly set them to zero, or 2) look at compute_canonical()… I suspect that we could put a filter for coefficients approaching DBL_EPSILON when we generate the constraint as part of the problem writer.

 

john

--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Qi Chen

unread,
Nov 29, 2016, 11:19:56 AM11/29/16
to Pyomo Forum
Hi John,
It's certainly my fault that the coefficients are near zero, since this arises most often when I'm playing around with piecewise McCormick and bound contraction.
An example model would be running my RPB file on the current commit.
All the best,
Qi
Reply all
Reply to author
Forward
0 new messages