The document describes an algorithm and MATLAB code called POWER (power optimization for wireless energy requirements) that was developed to design hybrid battery systems for powering multi-component wireless electronics. The algorithm allows the user to specify power requirements and constraints to determine the optimal battery configuration. It was validated through two case studies on hearing prosthetics. For the first device, a single secondary cell provided the best solution. For the second device, the optimal solution consisted of one primary cell for micro-watt power needs and one secondary cell for milli-watt needs. The algorithm aims to minimize mass and volume while meeting the specified power requirements and constraints.