Assuring and Optimizing Energy Supply for the Network