Hi,
usually it is sufficient to set r0 to the first minimum of the radial distribution function.
You might want to check by plotting the switching function against the RDF that the switching function does not have a significant slope at distances BELOW the first maximum of the RDF. If it has a significant slope there, it might be better to increase d0 (and decrease r0 correspondingly, so that d0+r0 is still the first minimum). If the second maximum of the RDF is clearly defined, you might want to make sure that the slope goes to zero approximately at that distance.
Giovanni