Orthogonal directions constrained gradient method for beam optics correction | Synapse