Total system planning by optimising customer actions in a deregulated power market