Hybrid energy supply for mining