I am using Scipy trust-constr to solve constrained optimization problem. I have an objective function to minimize and I have provided analytical gradient and hessian as inpu