<div dir="auto"><div>Feng,</div><div dir="auto">I believe you need to compile with the ASL solver, otherwise CBC will not have an AMPL interface. Look into ThirdParty/ASL.</div><div dir="auto"><br></div><div dir="auto">You can probably also get binaries directly from the AMPL website, in the open-source solver section.</div><div dir="auto"><br></div><div dir="auto">Giacomo<br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On Sep 24, 2017 10:38 PM, "Feng Gao" <<a href="mailto:mangotree.gf@gmail.com">mangotree.gf@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear Cbc Users:</div><div><br></div><div>      I have two questions regarding to Cbc Solver with AMPL. Please help.</div><div><br></div>1. I use AMPL + Cbc solve to run a case, however, AMPL issued an error message "Unable to open a file" where a solution is located. I compiled the Cbc solver using VS and the solver is working fine in a stand-alone mode.<br><div><br></div><div>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>---</div><div><div>ampl: solve</div><div>ampl? ;</div><div>Welcome to the CBC MILP Solver </div><div>Version: 2.9.9 </div><div>Build Date: Sep 19 2017 </div><div><br></div><div>command line - C:\COIN\Cbc\Cbc\<wbr>MSVisualStudio\v10\x64-v100-<wbr>Release\cbc.exe C:\Users\Feng\AppData\Local\<wbr>Temp\at2596 -AMPL (default strategy 1)</div><div>Unable to open file C:\Users\Feng\AppData\Local\<wbr>Temp\at2596</div><div>No match for AMPL - ? for list of commands</div><div>Total time (CPU seconds):       0.00   (Wallclock seconds):       0.00</div><div><br></div><div>Error executing "solve" command:</div><div>can't open C:\Users\Feng\AppData\Local\<wbr>Temp\at2596.sol</div></div><div><div>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>---</div><div><br></div><div>2. How to set a "MIP GAP" termination criteria in Cbc solver command line. The manuals only provide a time limit or the maximal number of iterations termination criteria though.</div><div><br></div><div>Thank you very much,</div><div><br></div><div>Feng</div><div><br></div><div></div></div></div>
<br>______________________________<wbr>_________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><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></blockquote></div><br></div></div></div>