Augmented Random Search with Artificial Neural Networks for energy cost optimization with battery control