Estimation of the physical parameters of planets and stars in the gravitational equilibrium model