Changeset 2827


Ignore:
Timestamp:
Jul 21, 2010 1:21:59 PM (9 years ago)
Author:
khunter
Message:

Forgotten SOS wordwrap handling as mostly fixed in r2799.

File:
1 edited

Legend:

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

    r2803 r2827  
    297297
    298298    @staticmethod
    299     def printSOS(con, OUTPUT, name, index=None):
     299    def printSOS(con, name, index=None):
    300300        """
    301301        Prints the SOS constraint associated with con. If specified,
     
    304304        Arguments:
    305305        con    The SOS constraint object
    306         OUTPUT The output stream to print to
    307306        name   The name of the variable
    308307        index  [Optional] the index to pass to the sets indexing the variables.
     
    624623        sos1 = model.has_capability("sos1")
    625624        sos2 = model.has_capability("sos2")
     625
    626626        if sosn or sos1 or sos2:
    627627            writtenSOS = False
     
    637637                    if None in masterIndex:
    638638                        # A single constraint
    639                         self.printSOS(con, OUTPUT, name)
     639                        line = self.printSOS(con, OUTPUT, name)
     640                        print >>OUTPUT, self.wrapper.fill( line )
    640641                    else:
    641642                        # A series of indexed constraints
Note: See TracChangeset for help on using the changeset viewer.