  Future fifth-generation (5G) cellular networks, equipped with energy
harvesting devices, are uniquely positioned to closely interoperate with smart
grid. New interoperable functionalities are discussed in stochastic two-way
energy trading and online planning to improve efficiency and productivity.
Challenges lie in the unavailability of a-priori knowledge on future wireless
channels, energy pricing and harvesting. Lyapunov optimization techniques are
utilized to address the challenges and stochastically optimize energy trading
and planning. Particularly, it is able to decouple the optimization of energy
trading and planning during individual time slots, hence eliminating the need
for joint optimization across a large number of slots.
