<div dir="ltr">Hello,<div><br></div><div>I'm new to the mailing list and couldn't figure out how to search the archive, sorry if this is a repost.</div><div><br></div><div>I'm trying to make the CasADi project work with the Ipopt in the debian packages, and I have run into an issue with the user callback functionality. When the user callback needs the constraint function "g", we have to shift the value by the right hand side. We use the following code to do this:</div>
<div><br></div><div><div> const Index* c_pos = tnlp_adapter->P_c_g_->ExpandedPosIndices();</div><div> Index n_c_no_fixed = tnlp_adapter->P_c_g_->NCols();</div><div> for (Index i=0; i<n_c_no_fixed; i++) {</div>
<div> g_[c_pos[i]] += tnlp_adapter->c_rhs_[i];</div><div> }</div></div><div><br></div><div>The problem is this code requires IpExpansionMatrix.hpp, which is not in the -dev package. I suspect it might also be missing from headers generated by "make install".</div>
<div><br></div><div>Is the correct solution here to add the missing header to the packages? Or is there a better way to access the "true" intermediate constraint value?</div><div><br></div><div>Thank you!</div><div>
Greg</div></div>