<div dir="ltr">Thank you very much for the suggestion, Giacomo!<div><br></div><div>Dear CBC users, any other advice please.</div><div><br></div><div>Best Regards,</div><div><br></div><div>Feng</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 2, 2017 at 11:17 AM, 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">Feng,<br>
I know how to compile it on Linux, but apparently it's not the same on<br>
Windows, so I'm afraid I cannot help you, sorry. Try to look for the<br>
instructions for MSV.<br>
<span class="HOEnZb"><font color="#888888"><br>
Giacomo<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Sun, Oct 1, 2017 at 10:21 PM, Feng Gao <<a href="mailto:mangotree.gf@gmail.com">mangotree.gf@gmail.com</a>> wrote:<br>
> Dear Mr. Nannicini:<br>
><br>
>     Sorry to bother you again...<br>
><br>
>     I am able to compile AMPL ASL library from source code: "amplsolv.lib"<br>
> (both 64-bit and 32-bit)<br>
><br>
> and<br>
><br>
>     cbc solver from source code: "cbc.exe" (both 64-bit and 32-bit)<br>
><br>
>      However, it is unsuccessful to "combine" there two images together,<br>
> i.e., it is unsuccessful to build a cbc solver "cbc.exe" embedded with<br>
> "amplsolv.lib". Do you have any advice? I am using MS Visual Studio 2010<br>
> (the compile is cl.exe).<br>
><br>
> Thank you very much,<br>
><br>
> Feng<br>
><br>
> On Tue, Sep 26, 2017 at 12:27 PM, Feng Gao <<a href="mailto:mangotree.gf@gmail.com">mangotree.gf@gmail.com</a>> wrote:<br>
>><br>
>> All right, thank you for the advice.<br>
>><br>
>> I am able to get the code.<br>
>><br>
>> Best,<br>
>><br>
>> Feng<br>
>><br>
>> On Tue, Sep 26, 2017 at 12:11 PM, Giacomo Nannicini <<a href="mailto:giacomo.n@gmail.com">giacomo.n@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> 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>
>>><br>
>>> On Mon, Sep 25, 2017 at 11:36 PM, Feng Gao <<a href="mailto:mangotree.gf@gmail.com">mangotree.gf@gmail.com</a>><br>
>>> 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<br>
>>> > <<a href="mailto:giacomo.n@gmail.com">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">mangotree.gf@gmail.com</a>><br>
>>> >> wrote:<br>
>>> >> > Dear Giacomo:<br>
>>> >> ><br>
>>> >> >    Thank you! Can you please let me know where to locate ASL code<br>
>>> >> > 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/<wbr>solvers/open-source/</a><br>
>>> >> ><br>
>>> >> > Thanks,<br>
>>> >> ><br>
>>> >> > Feng<br>
>>> >> ><br>
>>> >> > On Mon, Sep 25, 2017 at 8:10 PM, Giacomo Nannicini<br>
>>> >> > <<a href="mailto:giacomo.n@gmail.com">giacomo.n@gmail.com</a>><br>
>>> >> > wrote:<br>
>>> >> >><br>
>>> >> >> Feng,<br>
>>> >> >> I believe you need to compile with the ASL solver, otherwise CBC<br>
>>> >> >> 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,<br>
>>> >> >> 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">mangotree.gf@gmail.com</a>><br>
>>> >> >> wrote:<br>
>>> >> >><br>
>>> >> >> Dear Cbc Users:<br>
>>> >> >><br>
>>> >> >>       I have two questions regarding to Cbc Solver with AMPL.<br>
>>> >> >> Please<br>
>>> >> >> help.<br>
>>> >> >><br>
>>> >> >> 1. I use AMPL + Cbc solve to run a case, however, AMPL issued an<br>
>>> >> >> error<br>
>>> >> >> message "Unable to open a file" where a solution is located. I<br>
>>> >> >> compiled<br>
>>> >> >> the<br>
>>> >> >> Cbc solver using VS and the solver is working fine in a stand-alone<br>
>>> >> >> mode.<br>
>>> >> >><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\<wbr>MSVisualStudio\v10\x64-v100-<wbr>Release\cbc.exe<br>
>>> >> >> C:\Users\Feng\AppData\Local\<wbr>Temp\at2596 -AMPL (default strategy 1)<br>
>>> >> >> Unable to open file C:\Users\Feng\AppData\Local\<wbr>Temp\at2596<br>
>>> >> >> No match for AMPL - ? for list of commands<br>
>>> >> >> Total time (CPU seconds):       0.00   (Wallclock seconds):<br>
>>> >> >> 0.00<br>
>>> >> >><br>
>>> >> >> Error executing "solve" command:<br>
>>> >> >> can't open C:\Users\Feng\AppData\Local\<wbr>Temp\at2596.sol<br>
>>> >> >><br>
>>> >> >><br>
>>> >> >><br>
>>> >> >> ------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>---<br>
>>> >> >><br>
>>> >> >> 2. How to set a "MIP GAP" termination criteria in Cbc solver<br>
>>> >> >> 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">Cbc@list.coin-or.org</a><br>
>>> >> >><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.<wbr>coin-2Dor.org_mailman_<wbr>listinfo_cbc&d=DwICAg&c=Ngd-<wbr>ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLx<wbr>WPA_2Wlc4&r=<wbr>8FaVxIx99H879Ebkij38NpcRZoYLK-<wbr>7QMl1LqyvBccA&m=<wbr>8SxEtjHupj81oGZfkVBTmkXuT1qwIS<wbr>mP_eNU8T5zAmQ&s=<wbr>5qs5HpSbbII0q41Boy-<wbr>R7lKX6Ba0SWcp3LNU6kqLgDg&e=</a><br>
>>> >> >><br>
>>> >> >><br>
>>> >> ><br>
>>> ><br>
>>> ><br>
>><br>
>><br>
><br>
</div></div></blockquote></div><br></div>