Exact solutions of the Boltzmann equation and optimized hydrodynamic approaches for relativistic heavy-ion collisions