Text this: Optimal operation of the smart electrical network considering energy management of demand side