Improving electromagnetism algorithm for solving resource allocation problem in stochastic networks. (October 2017)