In one sense, defining a target-cost component to direct the search towards finding suitable intonation is not difficult, as a simple penalty for not matching the target intonation suffices.
standard unit selection techniques only ever take into account local effects, and no provision is made to ensure a suitable global intonation contour.