[Cbc] Two questions on Cbc Solver with AMPL
Giacomo Nannicini
giacomo.n at gmail.com
Mon Sep 25 08:10:59 EDT 2017
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.
coin-2Dor.org_mailman_listinfo_cbc&d=DwICAg&c=Ngd-
ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=8FaVxIx99H879Ebkij38NpcRZoYLK-
7QMl1LqyvBccA&m=8SxEtjHupj81oGZfkVBTmkXuT1qwISmP_eNU8T5zAmQ&s=
5qs5HpSbbII0q41Boy-R7lKX6Ba0SWcp3LNU6kqLgDg&e=
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20170925/3736a936/attachment-0003.html>
More information about the Cbc
mailing list