code: def success(self):
          
          self._check_valid()
          if self._ret_val != 0:
              return False
          return swiglpk.glp_get_status(self._problem._p) == swiglpk.GLP_OPT
docs: Return boolean indicating whether a solution was found.