<div dir="ltr"><div>Hi.</div><div><br></div><div>- The hessian, gradient, and objective function have some common terms.</div><div>- The common terms depends on the variables of the objective function.</div><div><br></div><div>I calculate each common terms for three times because I need the term for Hessian, gradient, and objective function.</div><div><br></div><div>Is it possible to only calculate each common term for only once in each step of optimization?</div><div><br></div><div>Thank you.</div></div>