METRIC AND TAME GEOMETRY IN OPTIMIZATION