<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1160930162;
        mso-list-type:hybrid;
        mso-list-template-ids:633373670 539103366 135462915 135462917 135462913 135462915 135462917 135462913 135462915 135462917;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:20.25pt;
        text-indent:-18.0pt;
        font-family:Symbol;
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l1
        {mso-list-id:1491022535;
        mso-list-type:hybrid;
        mso-list-template-ids:-743928326 561384308 135462915 135462917 135462913 135462915 135462917 135462913 135462915 135462917;}
@list l1:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NL-BE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Dear all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I’m experiencing a segmentation fault that occurs in PDSearchDirCalculator::ComputeSearchDirection for a problem with the following characteristics:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Sparse convex QP<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">No constraints<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Decision variable bounds that are large but finite<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">mehrotra_algorithm active<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hessian approximation exact or limited-memory, does not matter.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Since we are using our own python interface (CasADi), it is possible that the error lies in our interface.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So could someone here please reconstruct this problem by more conventional means so I can file a proper ticket?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m adding the code of the failing case here for further reference:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">======<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">from casadi import *<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">N = 5<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">x = ssym("x",N)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">x0 = DMatrix.ones(N,1)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">H = DMatrix.eye(N)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">A = DMatrix.ones(0,N)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">G = mul(H,x0)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">obj = 0.5*mul([x.T,H,x])-mul(G.T,x)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">f = SXFunction([x],[obj])<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">g = SXFunction([x],[mul(A,x)])<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">j = SXFunction([x],[A])<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">solver = IpoptSolver(f,g,FX(),j)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">solver.setOption("mehrotra_algorithm","yes");<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">solver.init()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">solver.input(NLP_LBX).setAll(-1000)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">solver.input(NLP_UBX).setAll(1000)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">solver.solve()<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">======<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Joris Gillis<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>