Stochastic gradient descent for wind farm optimization