Algorithm for optimizing the mode of electric power systems by active power | IEEE Conference Publication | IEEE Xplore