<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0.5em;padding-right:0px;padding-bottom:0.5em;padding-left:0px;text-align:left;border-top-color:rgb(221,228,235);border-right-color:rgb(221,228,235);border-bottom-color:rgb(221,228,235);border-left-color:rgb(221,228,235);color:rgb(51,51,51);font-family:Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;background-color:rgb(249,249,249)">
Good evening,</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0.5em;padding-right:0px;padding-bottom:0.5em;padding-left:0px;text-align:left;border-top-color:rgb(221,228,235);border-right-color:rgb(221,228,235);border-bottom-color:rgb(221,228,235);border-left-color:rgb(221,228,235);color:rgb(51,51,51);font-family:Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;background-color:rgb(249,249,249)">
I'm trying to develop C code for solving some distributed optimization problems which employs IPOPT.</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0.5em;padding-right:0px;padding-bottom:0.5em;padding-left:0px;text-align:left;border-top-color:rgb(221,228,235);border-right-color:rgb(221,228,235);border-bottom-color:rgb(221,228,235);border-left-color:rgb(221,228,235);color:rgb(51,51,51);font-family:Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;background-color:rgb(249,249,249)">
I'm trying to solve problems in a FOR loop ( at each step i define a new Ipopt problem and then i free it with FreeIpoptProblem), but after the first step the IPOPT solver starts and i get a segmentation fault.</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0.5em;padding-right:0px;padding-bottom:0.5em;padding-left:0px;text-align:left;border-top-color:rgb(221,228,235);border-right-color:rgb(221,228,235);border-bottom-color:rgb(221,228,235);border-left-color:rgb(221,228,235);color:rgb(51,51,51);font-family:Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;background-color:rgb(249,249,249)">
Everything in the first step runs just dandy, i get status==Solve_Succeeded, etc.</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0.5em;padding-right:0px;padding-bottom:0.5em;padding-left:0px;text-align:left;border-top-color:rgb(221,228,235);border-right-color:rgb(221,228,235);border-bottom-color:rgb(221,228,235);border-left-color:rgb(221,228,235);color:rgb(51,51,51);font-family:Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;background-color:rgb(249,249,249)">
I tried it as direct code in my main function, then i defined a separate function where i call Ipoptsolve, but to no avail, same result.</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0.5em;padding-right:0px;padding-bottom:0.5em;padding-left:0px;text-align:left;border-top-color:rgb(221,228,235);border-right-color:rgb(221,228,235);border-bottom-color:rgb(221,228,235);border-left-color:rgb(221,228,235);color:rgb(51,51,51);font-family:Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;background-color:rgb(249,249,249)">
Has anyone encountered this issue before?</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0.5em;padding-right:0px;padding-bottom:0.5em;padding-left:0px;text-align:left;border-top-color:rgb(221,228,235);border-right-color:rgb(221,228,235);border-bottom-color:rgb(221,228,235);border-left-color:rgb(221,228,235);color:rgb(51,51,51);font-family:Verdana,Helvetica,Arial,sans-serif;font-size:13px;line-height:18px;background-color:rgb(249,249,249)">
Any advice would be appreciated, thanks.</p>