AN OVERVIEW OF OPTIMIZATION AND LEARNING ALGORITHMS FOR ENERGY