Real-time applications for electric power generation and voltage control