<div dir="ltr"><div><div>Hi, <br><br></div>As the subject suggests, I have a simple
question regarding the constant Jacobian and Hessian Elements (linear
constraints, and quadratic terms in the Objective function). I did not find
a clear answer in the documentation and the mailing list archive. Is it
safe to assign the constant Jacobian elements in the first call only,
and then compute only the non-constant elements? For example,<br><br></div><div>static int once;<br></div><div>if(jac = NULL)<br>{<br></div><div> Jacobian Sparsity Pattern.<br></div><div> once = 0;<br></div><div>}<br></div><div>else<br></div><div>{<br></div><div> if(!once)<br> {<br></div><div> Compute Constant+Non-Constant Jac. Elements;<br></div><div> ++once;<br></div><div> }<br></div><div> else<br> {<br></div><div> Compute Only Non-Constant Jac. Elements;<br></div><div> }<br></div><div>}<br><br></div><div>Also, is it safe to do the same thing with the constant elements of the Hessian, if the above structure is modified properly to account for the Objective Factor?<br><br></div><div>Thank you very much,<br></div><div>Kostas Germakopoulos.<br></div><div><br></div></div>