<div dir="ltr">Hi Juhani,<div><br></div><div>Yes, the entire Couenne stack is under the EPL. I'm not too familiar with C#, but it looks like you can easily call C++ from it and the API of Couenne is in C++ (you could also check out the API of the Optimization Services project: <a href="https://github.com/coin-or/OS/wiki">https://github.com/coin-or/OS/wiki</a>). Both Couenne itself and Optimization Services produce .nl files, which can be passed directly to Couenne (that is the only way to get a problem in to Couenne at the moment). If you want a modeling language, the easiest way to produce a .nl file without AMPL (using open source tools) for this type of model would be to use Pyomo (<a href="https://github.com/pyomo">https://github.com/pyomo</a>). You could also check out JuMP (<a href="https://github.com/JuliaOpt/JuMP.jl">https://github.com/JuliaOpt/JuMP.jl</a>). By the way, for convex quadratic problems, Cbc should be all you need.</div><div><br></div><div>Hope this helps!</div><div><br></div><div>Cheers,</div><div><br></div><div>Ted</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 12, 2019 at 8:33 AM Juhani Miettunen <<a href="mailto:juhani.miettunen@piimega.fi">juhani.miettunen@piimega.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="FI"><div class="gmail-m_1379727773044589106WordSection1"><p class="MsoNormal">Hello all,</p><p class="MsoNormal"> </p><p class="MsoNormal"><span lang="EN-US">We have a sawmill ERP SW product done with Microsoft tools. Programming language is C#. A new feature for the product requires mixer integer optimization with quadrative objective (least squares). Problem is quite small, some data from the NEOS result report below.</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">I made an AMPL model about the problem and Couenne works fine with it. I used NEOS web service for the testing. Other solvers seem to work fine as well, including CBC.</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">A few questions:</span></p><ul style="margin-top:0cm" type="disc"><li class="gmail-m_1379727773044589106MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">Is Couenne and all the libraries used by it under EPL license (or other business friendly license)</span></li><li class="gmail-m_1379727773044589106MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">Is there a suitable API available for Microsoft .NET and C#</span></li><li class="gmail-m_1379727773044589106MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">Is there an easy way to convert the AMPL model to .nl or directly to suitable matrices without AMPL license</span></li></ul><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">Any good advice how to get Couenne embedded to our SW package?</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US">Kind Regards,</span></p><p class="MsoNormal"><span lang="EN-US">Juhani</span></p><div style="border-top:none;border-right:none;border-left:none;border-bottom:1pt solid windowtext;padding:0cm 0cm 1pt"><p class="MsoNormal" style="border:none;padding:0cm"><span lang="EN-US"> </span></p></div><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">You are using the solver couenne.</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">Checking ampl.mod for couenne_options...</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">Checking <a href="http://ampl.com" target="_blank">ampl.com</a> for couenne_options...</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">Executing AMPL.</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">processing data.</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">processing commands.</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">Executing on <a href="http://prod-exec-3.neos-server.org" target="_blank">prod-exec-3.neos-server.org</a></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black"> </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">Presolve eliminates 53 constraints and 1 variable.</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">Adjusted problem:</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">21 variables:</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">        10 binary variables</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">        11 nonlinear variables</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">19 constraints, all linear; 64 nonzeros</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:"Courier New";color:black">        19 inequality constraints</span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">1 nonlinear objective; 11 nonzeros.</span></p><p class="MsoNormal"><span lang="EN-US"> </span></p></div></div>
_______________________________________________<br>
Couenne mailing list<br>
<a href="mailto:Couenne@list.coin-or.org" target="_blank">Couenne@list.coin-or.org</a><br>
<a href="https://list.coin-or.org/mailman/listinfo/couenne" rel="noreferrer" target="_blank">https://list.coin-or.org/mailman/listinfo/couenne</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Dr. Ted Ralphs<br>Professor, Industrial and Systems Engineering<br>Lehigh University<br>(610) 628-1280<br>ted 'at' lehigh 'dot' edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br></div></div></div></div></div></div></div></div>