Constraining Gravitational And Cosmological Parameters With Astrophysical Data