coin-or / Cbc.old

This is a mirror of the subversion repository on COIN-OR
https://projects.coin-or.org/Cbc
Other
88 stars 30 forks source link

[Trac #134] Problem with Cbc and Dynamic3 Heuristic #71

Open s-c-e opened 5 years ago

s-c-e commented 5 years ago

image

Hello,

I use the last version of CBC (2.8.3). The problem has been met under windows 32 + 64 and linux 64.

I added the Dynamic3 heuristic like this:

CbcHeuristicDynamic3 HeuristicDynamic3;

HeuristicDynamic3.setModel(pModel_l); myCbcModel->addHeuristic(&HeuristicDynamic3);

Then I started the resolution using the Osi layer of CBC.

Here is the gdb log:

0 0x00007ffff3471425 in GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007ffff3474b8b in GI_abort () at abort.c:91 #2 0x00007ffff346a0ee in assert_fail_base (fmt=, assertion=0x14ec91b "clpSolver", file=

0x14ec280 "/home/crystal/rmdev/MoteurRiskManager-cmake/build_tmp/Dependencies/Cbc/src/EP_Cbc/Cbc/src/CbcLinked.cpp", line=, function=) at assert.c:94

3 0x00007ffff346a192 in GI_assert_fail (assertion=0x14ec91b "clpSolver", file=

0x14ec280 "/home/crystal/rmdev/MoteurRiskManager-cmake/build_tmp/Dependencies/Cbc/src/EP_Cbc/Cbc/src/CbcLinked.cpp", line=3940, function= 0x14ee0c0 <CbcHeuristicDynamic3::solution(double&, double)::__PRETTY_FUNCTION__> "virtual int CbcHeuristicDynamic3::solution(double&, double)") at assert.c:103

4 0x00000000012d08dc in CbcHeuristicDynamic3::solution (this=0x1c95a80, solutionValue=@0x7fffffffa0b0: 1.0000000000000001e+50, betterSolution=0x1cafe70)

at /home/crystal/rmdev/MoteurRiskManager-cmake/build_tmp/Dependencies/Cbc/src/EP_Cbc/Cbc/src/CbcLinked.cpp:3940

5 0x000000000131f576 in CbcModel::doHeuristicsAtRoot (this=0x1ba6220, deleteHeuristicsAfterwards=0)

at /home/crystal/rmdev/MoteurRiskManager-cmake/build_tmp/Dependencies/Cbc/src/EP_Cbc/Cbc/src/CbcModel.cpp:14322

6 0x00000000012ef99f in CbcModel::branchAndBound (this=0x1ba6220, doStatistics=0)

at /home/crystal/rmdev/MoteurRiskManager-cmake/build_tmp/Dependencies/Cbc/src/EP_Cbc/Cbc/src/CbcModel.cpp:2617

7 0x0000000001276799 in OsiCbcSolverInterface::branchAndBound (this=0x1a9d520)

at /home/crystal/rmdev/MoteurRiskManager-cmake/build_tmp/Dependencies/Cbc/src/EP_Cbc/Cbc/src/OsiCbc/OsiCbcSolverInterface.cpp:787

Best regards,

YC