Changeset 2831


Ignore:
Timestamp:
Jul 21, 2010 2:14:35 PM (9 years ago)
Author:
khunter
Message:

Refs r2799: one more whoopso. Would have caught this if we had any
tests to excercise the SOS constraints and LP output.

File:
1 edited

Legend:

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

    r2830 r2831  
    299299    def printSOS(con, name, index=None):
    300300        """
    301         Prints the SOS constraint associated with con. If specified,
    302         index is passed to con.sos_set().
     301        Returns the SOS constraint (as a string) associated with con.
     302        If specified, index is passed to con.sos_set().
    303303
    304304        Arguments:
     
    647647                    if None in masterIndex:
    648648                        # A single constraint
    649                         line = self.printSOS(con, OUTPUT, name)
     649                        line = self.printSOS(con, name)
    650650                        print >>OUTPUT, self.wrapper.fill( line )
    651651                    else:
    652652                        # A series of indexed constraints
    653653                        for index in masterIndex:
    654                             line = self.printSOS(con, OUTPUT, name, index)
     654                            line = self.printSOS(con, name, index)
    655655                            print >>OUTPUT, self.wrapper.fill( line )
    656656
Note: See TracChangeset for help on using the changeset viewer.