[Cbc] Two questions on Cbc Solver with AMPL

Feng Gao mangotree.gf at gmail.com
Mon Sep 25 23:06:26 EDT 2017


Dear Sam:

   Thank you! It helps.

Feng

On Tue, Sep 26, 2017 at 2:42 AM, Sam Mathew <sam.cfd.iitm at gmail.com> wrote:

> Hi Feng,
>
> The answer to your 2nd question - you can set it using the ratio
> parameter, e.g.,
>
> cbc ratio 0.005 solve
>
> 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.
>
> Best regards,
> Sam
>
> On 25 September 2017 at 17:40, Giacomo Nannicini <giacomo.n at gmail.com>
> wrote:
>
>> Feng,
>> I believe you need to compile with the ASL solver, otherwise CBC will not
>> have an AMPL interface. Look into ThirdParty/ASL.
>>
>> You can probably also get binaries directly from the AMPL website, in the
>> open-source solver section.
>>
>> Giacomo
>>
>> On Sep 24, 2017 10:38 PM, "Feng Gao" <mangotree.gf at gmail.com> wrote:
>>
>> Dear Cbc Users:
>>
>>       I have two questions regarding to Cbc Solver with AMPL. Please help.
>>
>> 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.
>>
>> ------------------------------------------------------------
>> ------------------------------------------------------------
>> ---------------------------------
>> ampl: solve
>> ampl? ;
>> Welcome to the CBC MILP Solver
>> Version: 2.9.9
>> Build Date: Sep 19 2017
>>
>> command line - C:\COIN\Cbc\Cbc\MSVisualStudio\v10\x64-v100-Release\cbc.exe
>> C:\Users\Feng\AppData\Local\Temp\at2596 -AMPL (default strategy 1)
>> Unable to open file C:\Users\Feng\AppData\Local\Temp\at2596
>> No match for AMPL - ? for list of commands
>> Total time (CPU seconds):       0.00   (Wallclock seconds):       0.00
>>
>> Error executing "solve" command:
>> can't open C:\Users\Feng\AppData\Local\Temp\at2596.sol
>> ------------------------------------------------------------
>> ------------------------------------------------------------
>> ---------------------------------
>>
>> 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.
>>
>> Thank you very much,
>>
>> Feng
>>
>>
>> _______________________________________________
>> Cbc mailing list
>> Cbc at list.coin-or.org
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__list.co
>> in-2Dor.org_mailman_listinfo_cbc&d=DwICAg&c=Ngd-ta5yRYsqeUsE
>> DgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=8FaVxIx99H879Ebkij38NpcRZoYLK-
>> 7QMl1LqyvBccA&m=8SxEtjHupj81oGZfkVBTmkXuT1qwISmP_eNU8T5zAmQ&
>> s=5qs5HpSbbII0q41Boy-R7lKX6Ba0SWcp3LNU6kqLgDg&e=
>>
>>
>>
>> _______________________________________________
>> Cbc mailing list
>> Cbc at list.coin-or.org
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__list.co
>> in-2Dor.org_mailman_listinfo_cbc&d=DwICAg&c=Ngd-ta5yRYsqeUs
>> EDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=O2I9eVkgSP0uuRqlNWomyjEJ4V-S
>> XE0NDqMv3a-ugIw&m=PabbrzquWbec4jvntydixqwJ8_W9Z2MtH4-
>> 0Gbn0NGI&s=2f621qioK8Pb65OvFzCllniK4NQkb4vUYSvLs__YYYE&e=
>>
>>
>
>
> --
> Consultant
>
> *Data Science and Engineering*
> *IITM Research Park*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20170926/3073e316/attachment-0002.html>


More information about the Cbc mailing list