Security-based rescheduling of transactions in a deregulated power system