<div dir="auto"><div>Dear Ning,</div><div dir="auto">There is a matlab API for AMPL :</div><div dir="auto"><a href="https://ampl.com/api/latest/matlab/index.html">https://ampl.com/api/latest/matlab/index.html</a></div><div dir="auto"><br></div><div dir="auto">Manuel. <br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Le mer. 27 mars 2019 à 20:25, Pietro Belotti <<a href="mailto:pbelotti@gmx.com">pbelotti@gmx.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana;font-size:12.0px"><div>
<div>Hi Ning,</div>

<div> </div>

<div>unfortunately nothing new on that side that I'm aware of. Couenne has two ways to read a problem: from a .nl file (which is generated by AMPL, hence the link between the two) or through an OSiL interface.</div>

<div> </div>

<div>For AMPL, you could instruct Matlab to create a .nl file, which is not straightforward but it is documented in two well-known articles: "Hooking your solver to AMPL" and "How to write .nl files", both by the authors of Ampl.</div>

<div> </div>

<div>Unfortunately I don't know anything about the OSiL interface, but you can read a lot about it on the Coin-OR project called OS (Optimization Services).</div>

<div> </div>

<div>Hope this helps. Regards,</div>

<div>Pietro</div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px;padding:10px 0 10px 10px;border-left:2px solid #c3d9e5;word-wrap:break-word">
<div style="margin:0 0 10px 0"><b>Sent:</b> Wednesday, March 27, 2019 at 6:20 PM<br>
<b>From:</b> "Ning Wang" <<a href="mailto:ning5@ualberta.ca" target="_blank" rel="noreferrer">ning5@ualberta.ca</a>><br>
<b>To:</b> <a href="mailto:couenne@list.coin-or.org" target="_blank" rel="noreferrer">couenne@list.coin-or.org</a><br>
<b>Subject:</b> [Couenne] post, couenne, matlab</div>

<div name="quoted-content">
<div>
<div>
<div>
<div>
<div>Hi,
<div> </div>

<div>I am a PHD student from university of Alberta. Recently I encountered an QCQP optimization problem and the problem can be well solved by Couenne ( through neos ).</div>

<div> </div>

<div>My question is: is it possible to call couenne directly from matlab? I am not very good at AMPL and my original code is written in matlab. I need to run couenne many times, and rewrite the whole matlab code will cost me lots of time. </div>

<div> </div>

<div>I found a related issue on the internet. In 2011, Pietro Belotti suggested a try<span style="color:rgb(0,0,0)"> by </span><span style="color:rgb(0,0,0)">writing a .nl file from matlab and then </span><span style="color:rgb(0,0,0)">run Couenne as a shell script from Matlab and read the .sol file. Is there any new progress in this issue? </span></div>

<div> </div>

<div><span style="color:rgb(0,0,0)">Thank you very much for your time!</span></div>

<div> </div>

<div><span style="color:rgb(0,0,0)">Bests,</span></div>

<div><font color="#000000">Ning Wang</font></div>

<pre style="color:rgb(0,0,0)"> </pre>
</div>
</div>
</div>
</div>
</div>
_______________________________________________ Couenne mailing list <a href="mailto:Couenne@list.coin-or.org" target="_blank" rel="noreferrer">Couenne@list.coin-or.org</a> <a href="https://list.coin-or.org/mailman/listinfo/couenne" target="_blank" rel="noreferrer">https://list.coin-or.org/mailman/listinfo/couenne</a></div>
</div>
</div>
</div></div></div>
_______________________________________________<br>
Couenne mailing list<br>
<a href="mailto:Couenne@list.coin-or.org" target="_blank" rel="noreferrer">Couenne@list.coin-or.org</a><br>
<a href="https://list.coin-or.org/mailman/listinfo/couenne" rel="noreferrer noreferrer" target="_blank">https://list.coin-or.org/mailman/listinfo/couenne</a></blockquote></div></div></div>