Text this: Electric power planning for regulated and deregulated markets