Text this: Optimization and Control of Economic Dispatch for Power Systems