Text this: Mathematical modelling and risk management in deregulated electricity markets