Text this: Control and optimization methods for electric smart grids