Optimising power system reserve for contingencies while considering response times.