[Ipopt] sIpopt example - Factor 0.5 in Lagrangian Hessian

Stefan Vigerske stefan at math.hu-berlin.de
Wed Apr 18 09:59:16 EDT 2018


Hi,

my guess: Since the Hessian is symmetric, Ipopt only expects the 
lower-triangle part of the Hessian to be given. However, it doesn't 
enforce this, but just doubles every off-diagonal element implicitly.
So a 0.5*lambda[1] in positions (1,5) and (5,1) will be treated as a 
lambda[1] in (1,5) and (5,1). Nicer it had been to provide only a 
lambda[1] in (1,5). However, I don't know whether sIpopt has some 
special requirements.

Stefan


On 01/29/2018 07:37 AM, Alexander Reiter wrote:
> Dear members of the Ipopt mailing list,
> 
> I'm quite new to the C++ interface to Ipopt (and sIpopt), so this question might
> be trivial. So far I have only used Ipopt through the CasADi interface.
> 
> In the sIpopt example
> https://projects.coin-or.org/Ipopt/browser/releases/3.12.9/Ipopt/contrib/sIPOPT/examples/parametric_cpp/parametricTNLP.cpp
> Lines 187, 188
> I discovered factors 0.5 for the multiplier part of Lagrangian Hessian. Looking
> at the KKT system (27) in
> https://projects.coin-or.org/Ipopt/export/1992/trunk/Ipopt/contrib/sIPOPT/doc/sipopt_manual.pdf
> I cannot find these factors. Are they required by convention for the C++ interface?
> 
> Thanks.
> 
> Kind regards,
> Alexander Reiter
> 
> -- 
> *DI Alexander Reiter, BSc*
> University Assistant
> Institute of Robotics
> 
> *JOHANNES KEPLER
> UNIVERSITY LINZ*
> Altenberger Straße 69
> Science Park 1, Room 0537
> 4040 Linz, Austria
> T +43 732 2468 6497
> alexander.reiter at jku.at
> www.jku.at
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.jku.at&d=DwMDaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=BRcuJnQr5NAzU29t80hk2rsLc4vrlRySBDabuq0O1ZI&m=f5P0Npu8oSqsq2T9Y8Qw4UkW8zwj5i-wlMPaoBcLtfc&s=LzD2fOUL3jxg-lY-Tk1UvPlAhrFrHbgIb4k23l73Sns&e=>
> robotik.jku.at
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.robotik.jku.at&d=DwMDaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=BRcuJnQr5NAzU29t80hk2rsLc4vrlRySBDabuq0O1ZI&m=f5P0Npu8oSqsq2T9Y8Qw4UkW8zwj5i-wlMPaoBcLtfc&s=RRck7i3Ey2PYokPQwIcMnMi4_yuwDFKffpv3Nn2k3TI&e=>
> 
> 
> 
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> https://urldefense.proofpoint.com/v2/url?u=https-3A__list.coin-2Dor.org_mailman_listinfo_ipopt&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=BRcuJnQr5NAzU29t80hk2rsLc4vrlRySBDabuq0O1ZI&m=f5P0Npu8oSqsq2T9Y8Qw4UkW8zwj5i-wlMPaoBcLtfc&s=PFWo0wm7hVAKgJVmCfQLxi50xkd6BDauj6sviq8Z73I&e=
> 



More information about the Ipopt mailing list