Hope is definitely not the same thing as optimism. It is not the conviction that something will turn out well, but the certainty that something makes sense, regardless of how it turns out.
Václav Havel (b. 1936), Czech playwright, president. Disturbing the Peace, ch. 5 (1986, trans. 1990).