Numerical optimization in Go