<div dir="ltr">Hi Wendel,<div><br></div><div>You can use AMPL/MP library (<a href="https://github.com/ampl/mp">https://github.com/ampl/mp</a>) to build a problem in ASL format and pass it to Couenne via standard AMPL (NL) interface. For example:</div><div><br></div><div><div>#include &quot;asl/aslbuilder.h&quot;</div><div><br></div><div>using namespace mp;</div><div><br></div><div>int main() {</div><div>  // Build problem in ASL form.</div><div>  ASL *asl = ASL_alloc(ASL_read_fg);</div><div>  asl::internal::ASLBuilder b(asl);</div><div>  auto info = ProblemInfo();</div><div>  info.num_vars = 1;</div><div>  info.num_objs = 1;</div><div>  b.SetInfo(info);</div><div>  // Add a continuous variable with -100 &lt;= x &lt;= 100</div><div>  b.AddVar(-100, 100, var::CONTINUOUS);</div><div>  // Add objective minimize o: x ^ 2;</div><div>  b.AddObj(obj::MIN, b.MakeUnary(expr::POW2, b.MakeVariable(0)), 0);</div><div>  // Write .nl file.</div><div>  fg_write(&quot;<a href="http://test.nl">test.nl</a>&quot;, 0, ASL_write_ASCII);</div><div>  // Solve the problem with Couenne.</div><div>  std::system(&quot;couenne -s <a href="http://test.nl">test.nl</a>&quot;);</div><div>}</div><div><br></div><div>This is not particularly user friendly at the moment (apart from expression construction which is probably OK), but does the job done. I am working on improving and documenting the API.</div><div><br></div><div>HTH,</div><div>Victor</div><br><div class="gmail_quote">On Fri Feb 20 2015 at 11:15:54 PM Wendel Melo &lt;<a href="mailto:wendelalexandre@gmail.com">wendelalexandre@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi experts<br><br><br>Is there a callable library to use Couenne in C/C++? It would be useful to develop a software to my Ph. D thesis. Write my models in AMPL is not appropriate... <br>Is there some information about that?<br><br>Thanks in advanced for your attention<br><br>Have a nice week<br><br>-- <br>Wendel Melo</div>
______________________________<u></u>_________________<br>
Couenne mailing list<br>
<a href="mailto:Couenne@list.coin-or.org" target="_blank">Couenne@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/couenne" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/couenne</a></blockquote></div></div></div>