Economic operation of power system