I am currently writing a script for bundle adjustment and am using ceres for it. Let\'s assume that I have to use gradient descent(GD) for update step. GD minimizes any error by