[Cbc] Two questions on Cbc Solver with AMPL

Feng Gao mangotree.gf at gmail.com
Mon Sep 25 23:22:48 EDT 2017


Dear Giacomo:

   Thank you! Can you please let me know where to locate ASL code  or
binary image? I searched AMPL website---- opensource section, but could not
find them...

http://ampl.com/products/solvers/open-source/

Thanks,

Feng

On Mon, Sep 25, 2017 at 8:10 PM, 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-ta5yRYsqeUs
> EDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=8FaVxIx99H879Ebkij38NpcRZoYL
> K-7QMl1LqyvBccA&m=8SxEtjHupj81oGZfkVBTmkXuT1qwISmP_
> eNU8T5zAmQ&s=5qs5HpSbbII0q41Boy-R7lKX6Ba0SWcp3LNU6kqLgDg&e=
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20170926/5fba92f4/attachment-0003.html>


More information about the Cbc mailing list