<div dir="ltr">Dear Sam:<div><br></div><div>   Thank you! It helps.</div><div><br></div><div>Feng</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 26, 2017 at 2:42 AM, Sam Mathew <span dir="ltr"><<a href="mailto:sam.cfd.iitm@gmail.com" target="_blank">sam.cfd.iitm@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"><div><div>Hi Feng,<br><br></div>The answer to your 2nd question - you can set it using the ratio parameter, e.g.,</div><div><br></div><div><span style="font-family:monospace,monospace">cbc ratio 0.005 solve</span></div><div><br></div><div>This will mean that the solver solves until the ratio (actually gap ratio) between the current MIP solution and the LP solution is 0.005. You can set it to an appropriate value.</div><div><br></div><div>Best regards,<br></div><div>Sam<br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 25 September 2017 at 17:40, Giacomo Nannicini <span dir="ltr"><<a href="mailto:giacomo.n@gmail.com" target="_blank">giacomo.n@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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"><div><div class="m_-7399877005191634465h5">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 type="attribution"></div></div><blockquote class="m_-7399877005191634465m_95724676227947523quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-7399877005191634465h5"><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\MSVisualStudio<wbr>\v10\x64-v100-Release\cbc.exe C:\Users\Feng\AppData\Local\Te<wbr>mp\at2596 -AMPL (default strategy 1)</div><div>Unable to open file C:\Users\Feng\AppData\Local\Te<wbr>mp\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\Te<wbr>mp\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></div></div>______________________________<wbr>_________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org" target="_blank">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.co<wbr>in-2Dor.org_mailman_listinfo_c<wbr>bc&d=DwICAg&c=Ngd-ta5yRYsqeUsE<wbr>DgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=<wbr>8FaVxIx99H879Ebkij38NpcRZoYLK-<wbr>7QMl1LqyvBccA&m=8SxEtjHupj81oG<wbr>ZfkVBTmkXuT1qwISmP_eNU8T5zAmQ&<wbr>s=5qs5HpSbbII0q41Boy-<wbr>R7lKX6Ba0SWcp3LNU6kqLgDg&e=</a><br>
<br></blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a><br>
</div></div><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=O2I9eVkgSP0uuRqlNWomyjEJ4V-SXE0NDqMv3a-ugIw&m=PabbrzquWbec4jvntydixqwJ8_W9Z2MtH4-0Gbn0NGI&s=2f621qioK8Pb65OvFzCllniK4NQkb4vUYSvLs__YYYE&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=O2I9eVkgSP0uuRqlNWomyjEJ4V-S<wbr>XE0NDqMv3a-ugIw&m=PabbrzquWbec<wbr>4jvntydixqwJ8_W9Z2MtH4-<wbr>0Gbn0NGI&s=2f621qioK8Pb65OvFzC<wbr>llniK4NQkb4vUYSvLs__YYYE&e=</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div class="m_-7399877005191634465gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#888888">Consultant</font><font style="font-family:times new roman,serif" color="#888888"><br><i>Data Science and Engineering<br></i></font></div><font style="font-family:times new roman,serif" color="#888888"><i>IITM Research Park</i></font><br></div></div></div></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br></div>