This document discusses using static analysis to predict the worst-case energy consumption of software. It proposes applying techniques for worst-case execution time (WCET) analysis to energy by building an energy model and generating constraints to solve using an integer linear programming (ILP) solver. Preliminary results applying this approach to a software product line with 7 features are promising but constraint solving could be optimized by avoiding re-calculating shared constraints for each product. Future work includes improving the accuracy of the energy model and applying the technique to different contexts like mobile or embedded systems.