[Ipopt] Inspection of numerical values within objects in Ipopt with GDB
Stefan Vigerske
stefan at math.hu-berlin.de
Fri Dec 18 09:57:47 EST 2015
Hi,
a SmartPtr<> is just a simple class that encapsulates an ordinary
pointer in the ptr_ member.
So if you have an SmartPtr<IteratesVector> x, then in gdb you can access
to IteratesVector* via x.ptr_, so *x_ptr should give you the
IteratesVector object.
To access the x_space_ VectorSpace in IteratesVector, you could then use
x.ptr_->x_space_.ptr_. This should be a VectorSpace*. As this is just an
abstract base class, you could cast this to one of the derived
VectorSpace classes, I think.
Hope that helps,
Stefan
On 03/31/2015 11:46 AM, Lemoine, Roberto wrote:
> Dear members of the Ipopt community,
>
> short question. How is it possible to check the values contained in an object in Ipopt (say, in an object created with SmartPtr<IteratesVector> with GDB? Thanks a lot in advance.
>
> Best regards,
>
> Roberto Lemoine
> Lehrstuhl für Systemdynamik und Prozessführung
> Technical University Dortmund
> +49 231 755 5809
>
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>
--
http://www.gams.com/~stefan
More information about the Ipopt
mailing list