Jelena Ostapenko had beaten World No. 2 Iga Swiatek in the semi-final, but could not triumph over Amanda Anisimova.