Gravar-mail: Learning to Optimize in Swarms