implemented solver switch and tested ADAGRAD