Text this: Artificial intelligence in forecasting demands for electricity : an application in optimization of energy resources