Optative (usually aorist), when the action lies in the
a. Future, and depends on an optative with ἄν.
b. Past, and depends on a secondary tense expressing or implying indirect discourse. Here the optative represents ἄν with the subjunctive after a primary tense.
c. Past, and the verb of the main clause states a past customary or repeated action.
N.—The present optative in b is rare; the future optative occurs only in
Herbert Weir Smyth [n.d.], A Greek Grammar for Colleges; Machine readable text [info] [word count] [Smyth].