Distributed rate control of smart solar arrays with batteries