<div dir="ltr">Dear Mr. Nannicini:<div><br></div><div>    Sorry to bother you again...</div><div><br></div><div>    I am able to compile AMPL ASL library from source code: "amplsolv.lib" (both 64-bit and 32-bit)</div><div> </div><div>and </div><div><br></div><div>    cbc solver from source code: "cbc.exe" (both 64-bit and 32-bit)</div><div><br></div><div>     However, it is unsuccessful to "combine" there two images together, i.e., it is unsuccessful to build a cbc solver "cbc.exe" embedded with "amplsolv.lib". Do you have any advice? I am using MS Visual Studio 2010 (the compile is cl.exe).</div><div><br></div><div>Thank you very much,</div><div><br></div><div>Feng</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 26, 2017 at 12:27 PM, Feng Gao <span dir="ltr"><<a href="mailto:mangotree.gf@gmail.com" target="_blank">mangotree.gf@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">All right, thank you for the advice. <div><br></div><div>I am able to get the code.</div><div><br></div><div>Best,</div><div><br></div><div>Feng</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 26, 2017 at 12:11 PM, Giacomo Nannicini <span dir="ltr"><<a href="mailto:giacomo.n@gmail.com" target="_blank">giacomo.n@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There should be a get.ASL file, but it might require cygwin on Windows.<br>
I don't know how to get ASL automatically on Windows, I guess my best<br>
advice is to look at the get.ASL file and repeat the steps on Windows.<br>
<br>
If you don't know how to do that, then just get the CBC binaries from<br>
the AMPL website.<br>
<div class="m_-1254289810051078706HOEnZb"><div class="m_-1254289810051078706h5"><br>
On Mon, Sep 25, 2017 at 11:36 PM, Feng Gao <<a href="mailto:mangotree.gf@gmail.com" target="_blank">mangotree.gf@gmail.com</a>> wrote:<br>
> All right. I have that folder. But there is ONLY configuration files/<br>
> Makefiles in that folder? No need source code?<br>
><br>
> Feng<br>
><br>
> On Tue, Sep 26, 2017 at 11:24 AM, Giacomo Nannicini <<a href="mailto:giacomo.n@gmail.com" target="_blank">giacomo.n@gmail.com</a>><br>
> wrote:<br>
>><br>
>> You can get CBC binaries from the webpage you listed.<br>
>><br>
>> To compile ASL with CBC, go to the ThirdPary/ASL folder, and get.ASL.<br>
>><br>
>> G<br>
>><br>
>> On Mon, Sep 25, 2017 at 11:22 PM, Feng Gao <<a href="mailto:mangotree.gf@gmail.com" target="_blank">mangotree.gf@gmail.com</a>> wrote:<br>
>> > Dear Giacomo:<br>
>> ><br>
>> >    Thank you! Can you please let me know where to locate ASL code  or<br>
>> > binary<br>
>> > image? I searched AMPL website---- opensource section, but could not<br>
>> > find<br>
>> > them...<br>
>> ><br>
>> > <a href="http://ampl.com/products/solvers/open-source/" rel="noreferrer" target="_blank">http://ampl.com/products/solve<wbr>rs/open-source/</a><br>
>> ><br>
>> > Thanks,<br>
>> ><br>
>> > Feng<br>
>> ><br>
>> > On Mon, Sep 25, 2017 at 8:10 PM, Giacomo Nannicini <<a href="mailto:giacomo.n@gmail.com" target="_blank">giacomo.n@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Feng,<br>
>> >> I believe you need to compile with the ASL solver, otherwise CBC will<br>
>> >> not<br>
>> >> have an AMPL interface. Look into ThirdParty/ASL.<br>
>> >><br>
>> >> You can probably also get binaries directly from the AMPL website, in<br>
>> >> the<br>
>> >> open-source solver section.<br>
>> >><br>
>> >> Giacomo<br>
>> >><br>
>> >> On Sep 24, 2017 10:38 PM, "Feng Gao" <<a href="mailto:mangotree.gf@gmail.com" target="_blank">mangotree.gf@gmail.com</a>> wrote:<br>
>> >><br>
>> >> Dear Cbc Users:<br>
>> >><br>
>> >>       I have two questions regarding to Cbc Solver with AMPL. Please<br>
>> >> help.<br>
>> >><br>
>> >> 1. I use AMPL + Cbc solve to run a case, however, AMPL issued an error<br>
>> >> message "Unable to open a file" where a solution is located. I compiled<br>
>> >> the<br>
>> >> Cbc solver using VS and the solver is working fine in a stand-alone<br>
>> >> mode.<br>
>> >><br>
>> >><br>
>> >><br>
>> >> ------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>---<br>
>> >> ampl: solve<br>
>> >> ampl? ;<br>
>> >> Welcome to the CBC MILP Solver<br>
>> >> Version: 2.9.9<br>
>> >> Build Date: Sep 19 2017<br>
>> >><br>
>> >> command line -<br>
>> >> C:\COIN\Cbc\Cbc\MSVisualStudio<wbr>\v10\x64-v100-Release\cbc.exe<br>
>> >> C:\Users\Feng\AppData\Local\Te<wbr>mp\at2596 -AMPL (default strategy 1)<br>
>> >> Unable to open file C:\Users\Feng\AppData\Local\Te<wbr>mp\at2596<br>
>> >> No match for AMPL - ? for list of commands<br>
>> >> Total time (CPU seconds):       0.00   (Wallclock seconds):       0.00<br>
>> >><br>
>> >> Error executing "solve" command:<br>
>> >> can't open C:\Users\Feng\AppData\Local\Te<wbr>mp\at2596.sol<br>
>> >><br>
>> >><br>
>> >> ------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>---<br>
>> >><br>
>> >> 2. How to set a "MIP GAP" termination criteria in Cbc solver command<br>
>> >> line.<br>
>> >> The manuals only provide a time limit or the maximal number of<br>
>> >> iterations<br>
>> >> termination criteria though.<br>
>> >><br>
>> >> Thank you very much,<br>
>> >><br>
>> >> Feng<br>
>> >><br>
>> >><br>
>> >> ______________________________<wbr>_________________<br>
>> >> Cbc mailing list<br>
>> >> <a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a><br>
>> >><br>
>> >><br>
>> >> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__list.coin-2Dor.org_mailman_listinfo_cbc&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=8FaVxIx99H879Ebkij38NpcRZoYLK-7QMl1LqyvBccA&m=8SxEtjHupj81oGZfkVBTmkXuT1qwISmP_eNU8T5zAmQ&s=5qs5HpSbbII0q41Boy-R7lKX6Ba0SWcp3LNU6kqLgDg&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=https-3A__list.co<wbr>in-2Dor.org_mailman_listinfo_<wbr>cbc&d=DwICAg&c=Ngd-ta5yRYsqeUs<wbr>EDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&<wbr>r=8FaVxIx99H879Ebkij38NpcRZoYL<wbr>K-7QMl1LqyvBccA&m=8SxEtjHupj81<wbr>oGZfkVBTmkXuT1qwISmP_<wbr>eNU8T5zAmQ&s=5qs5HpSbbII0q41Bo<wbr>y-R7lKX6Ba0SWcp3LNU6kqLgDg&e=</a><br>
>> >><br>
>> >><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>