Simulation with gradient descent with momentum.