Ticket #7758: sagelib_7758.patch

File sagelib_7758.patch, 1.2 KB (added by William Stein, 13 years ago)
  • sage/numerical/mip.pyx

    # HG changeset patch
    # User wstein@oto.local
    # Date 1261641263 18000
    # Node ID cd8c96d7f2a11363671e170ed889c8ba923882a7
    # Parent  044781998884715937d1ac273d8ced726587fb52
    trac 7758 -- doctest failure on OS X 10.5 intel due to randomization
    
    diff -r 044781998884 -r cd8c96d7f2a1 sage/numerical/mip.pyx
    a b  
    367367            Constraints:
    368368              -3*x0 + 2*x1 <= 2
    369369            Variables:
     370              x0 is a real variable (min=0.0, max=+oo)
    370371              x1 is a real variable (min=0.0, max=+oo)
    371               x0 is a real variable (min=0.0, max=+oo)
    372372        """
    373373
    374374        inv_variables = [0]*len(self._variables)
     
    389389        for (c,min,max) in self.constraints():
    390390            value += "\n  " + (str(min)+" <= " if min!=None else "")+str(c)+(" <= "+str(max) if max!=None else "")
    391391        value += "\nVariables:"
    392         for v in self._variables.keys():
     392        for v in sorted(self._variables.keys()):
    393393            value += "\n  " + str(v) + " is"
    394394            if self.is_integer(v):
    395395                value += " an integer variable"