Self-consistent calculation of the coupling constant in the Gross-Pitaevskii equation