Text this: Optimisation and control of economic dispatch for power systems