Ticket #9570: trac_9570.patch

File trac_9570.patch, 1.1 KB (added by ncohen, 11 years ago)
  • sage/numerical/mip.pyx

    # HG changeset patch
    # User Nathann Cohen <nathann.cohen@gmail.com>
    # Date 1279767415 -28800
    # Node ID b8948f614f745501a034c57f1c4dff21e1f25a63
    # Parent  cb1ad1ee5bd452850fde04d47f9618dec4c3e997
    trac 9570 -- Wrong LP solver ordering
    
    diff -r cb1ad1ee5bd4 -r b8948f614f74 sage/numerical/mip.pyx
    a b  
    6363            sage: p = MixedIntegerLinearProgram(maximization=True)
    6464        """
    6565       
    66         self._default_solver = "GLPK"
     66
    6767       
    6868        try:
    6969            if self._default_solver == None:
     
    7979        except ImportError:
    8080            pass
    8181
     82        if self._default_solver == None:
     83            self._default_solver = "GLPK"
     84
    8285        # List of all the MIPVariables linked to this instance of
    8386        # MixedIntegerLinearProgram
    8487        self._mipvariables = []
     
    129132        #
    130133        # ######################################################
    131134       
    132 
    133135        self._name = None
    134136        self._maximization = maximization
    135137        self._objective_i = None