Text this: Shields-Harary numbers of graphs with respect to continuous concave cost functions