Scholarship Abounds
The first concrete way of doing this that we ran across was in Fortz & Thorup's paper Internet Traffic Engineering by Optimizing OSPF Weights.
This literature tends to be quite recent (1999 and newer).
How easy it is to determine the optimal values very much depends on what your network and flows look like.