Changeset 2211


Ignore:
Timestamp:
Jan 30, 2010 10:17:19 PM (10 years ago)
Author:
jwatson
Message:

Suppressing warning for "constant constraint" when writing LP files - this happens all the time in PH and other contexts, where variable fixing is active.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/io/cpxlp.py

    r2210 r2211  
    267267                    # constant, in which case the "variable" of
    268268                    if is_constant(C[cndx].repn):
    269                         print "WARNING: ignoring constraint %s[%s] which is constant" % (str(C),str(cndx))
     269                        # this happens *all* the time in many applications, including PH - so suppress the warning.
     270                        #print "WARNING: ignoring constraint %s[%s] which is constant" % (str(C),str(cndx))
    270271                        continue
    271272                    if is_nonlinear(C[cndx].repn):
Note: See TracChangeset for help on using the changeset viewer.