A general algorithm for flexible active power control of photovoltaic systems | IEEE Conference Publication | IEEE Xplore