I have a function that I want to minimize using the BFGS Quasi-Newton algorithm. If . are given.
Also, A is given, B is not given, and C is a function of B only.
If I want to calculate to the gradient of the function (). Should I calculate it with respect to all variables or with respect to B only?