[Ipopt] add IpExpansionMatrix.hpp to coinor-libipopt-dev package?

Stefan Vigerske stefan at math.hu-berlin.de
Thu Mar 13 09:37:56 EDT 2014


Hi,

I think it wouldn't harm to install also this header file. Will do so 
with the next release.

Stefan

On 03/12/2014 01:57 PM, Greg Horn wrote:
> Hello,
>
> I'm new to the mailing list and couldn't figure out how to search the
> archive, sorry if this is a repost.
>
> 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:
>
>    const Index* c_pos = tnlp_adapter->P_c_g_->ExpandedPosIndices();
>    Index n_c_no_fixed = tnlp_adapter->P_c_g_->NCols();
>    for (Index i=0; i<n_c_no_fixed; i++) {
>      g_[c_pos[i]] += tnlp_adapter->c_rhs_[i];
>    }
>
> 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".
>
> 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?
>
> Thank you!
> Greg
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>



More information about the Ipopt mailing list