@jit(nopython=True, cache=True)
def min_ratio_test_no_tie_breaking(tableau, pivot, test_col, argmins, num_candidates):
 ratio_min = np.inf
 num_argmins = 0
 for k in range(num_candidates):
  i = argmins[k]
  if (tableau[(i, pivot)] <= TOL_PIV):
   continue
  ratio = (tableau[(i, test_col)] / tableau[(i, pivot)])
  if (ratio > (ratio_min + TOL_RATIO_DIFF)):
   continue
  elif (ratio < (ratio_min - TOL_RATIO_DIFF)):
   ratio_min = ratio
   num_argmins = 1
  else:
   num_argmins += 1
  argmins[(num_argmins - 1)] = i
 return num_argmins

@ jit ( nopython = True , cache = True ) def min_ratio_test_no_tie_breaking ( tableau , pivot , test_col , argmins , num_candidates ) : ratio_min = np . inf num_argmins = 0 for k in range ( num_candidates ) : i = argmins [ k ] if ( tableau [ ( i , pivot ) ] <= TOL_PIV ) : continue ratio = ( tableau [ ( i , test_col ) ] / tableau [ ( i , pivot ) ] ) if ( ratio > ( ratio_min + TOL_RATIO_DIFF ) ) : continue elif ( ratio < ( ratio_min - TOL_RATIO_DIFF ) ) : ratio_min = ratio num_argmins = 1 else : num_argmins += 1 argmins [ ( num_argmins - 1 ) ] = i return num_argmins
perform the minimum ratio test .