[Cbc] Compiling and installing CBC with GLPK-4.47
Noli Sicad
nsicad at gmail.com
Tue Nov 20 19:23:14 EST 2012
Hi,
>> Before you go to a lot more trouble, can you maybe say what you are
>> trying
>> to do that requires Glpk 4.47? The only thing Glpk can do for you when
>> combined with Cbc is to read instances in GMPL format and for that, 4.45
>> works well and compiles out of the box.
>
> Yes, I did this last night (Melbourne time) and it works out of the
> box even with -arch=x86_64 (i.e. compiling and installing). However,
> I have not yet manage to run a mod file and data (i.e. AMPL or GMPL)
> Stefan and Ted, what GMPL file and data did you use to test and says
> that CBC with glpk-4.45 "works out of the box"?
OK.
I managed to run my GMPL model with Tables (i.e. Sqilte3 / Spatialite) tables.
See this logs below.
It is quick, it takes only 9 minutes. Unlike the freemps format in cbc
as well, takes 17 minutes to solve this MIP model. GLPK/MathProg
solved this model in 37 minutes.
Noli
####
Nolis-MacBook-Pro:Case_Studies nsicad$ cbc
MIP_model_I_P6r_spl_1500_working_evenflow_0025p.mod% -printi all
-solve -solu solution.out
Welcome to the CBC MILP Solver
Version: 2.7.7
Build Date: Nov 20 2012
command line - cbc
MIP_model_I_P6r_spl_1500_working_evenflow_0025p.mod% -printi all
-solve -solu solution.out (default strategy 1)
GMPL model file ./MIP_model_I_P6r_spl_1500_working_evenflow_0025p.mod
and data file ./
Reading model section from
./MIP_model_I_P6r_spl_1500_working_evenflow_0025p.mod...
Reading data section from
./MIP_model_I_P6r_spl_1500_working_evenflow_0025p.mod...
599 lines were read
Reading Origin1...
Connected to SQLite 3.7.6.2 -
/Users/nsicad/Documents/A_Document_1/Pete_book/Lincoln_stands.sqlite
SELECT ID FROM Lincoln_stands
Display statement at line 41
STAND:
1
2
3
4
5
6
..
FlowCover was tried 100 times and created 0 cuts of which 0 were
active after adding rounds of cuts (0.061 seconds)
TwoMirCuts was tried 100 times and created 87 cuts of which 0 were
active after adding rounds of cuts (0.131 seconds)
Result - Optimal solution found
Objective value: -345556.66666667
Enumerated nodes: 1007292
Total iterations: 12059944
Time (CPU seconds): 543.33
Time (Wallclock seconds): 546.31
Total time (CPU seconds): 543.37 (Wallclock seconds): 546.37
Nolis-MacBook-Pro:Case_Studies nsicad$
#######
More information about the Cbc
mailing list