Gradient term in Linear LS cost function

Hi Gianluca,

You are definitely right, but I would expect that for LINEAR_LS, the “Gauss-Newton” option also omits the contribution of the constraints, whereas for the EXTERNAL option, they would be always present, no?

Best,
Jochem