Numerical optimization and positivity certificates for polynomials and rationals over simplices