Opened 6 years ago

Closed 8 weeks ago

#133 closed defect (migrated)

Problem with Cbc and PseudoCost Heuristic

Reported by: ycollet Owned by: tkr
Priority: major Component: Cbc
Version: 2.7 Keywords:
Cc:

Description

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 PseudoCost? heuristic like this:

CbcHeuristicDivePseudoCost? HeuristicDivePseudoCost?;

HeuristicDivePseudoCost?.setModel(pModel_l); mcCbcModel->addHeuristic(&HeuristicDivePseudoCost?);

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

Here is the gdb log:

#0 0x000000000129002c in CbcHeuristicDivePseudoCost::selectVariableToBranch (this=0x1c8bd20, solver=0x1cb3b38, newSolution=0x1cb3560, bestColumn=@0x7fffffff9d6c: -1,

bestRound=@0x7fffffff9d70: -1) at /home/crystal/rmdev/MoteurRiskManager-cmake/build_tmp/Dependencies/Cbc/src/EP_Cbc/Cbc/src/CbcHeuristicDivePseudoCost.cpp:90

#1 0x0000000001289d6e in CbcHeuristicDive::solution (this=0x1c8bd20, solutionValue=@0x7fffffffa0b0: 1.0000000000000001e+50, numberNodes=@0x7fffffffa020: -1,

numberCuts=@0x7fffffffa01c: 0, cuts=0x0, nodes=@0x7fffffffa030: 0x0, newSolution=0x1cb3560) at /home/crystal/rmdev/MoteurRiskManager-cmake/build_tmp/Dependencies/Cbc/src/EP_Cbc/Cbc/src/CbcHeuristicDive.cpp:314

#2 0x000000000128c277 in CbcHeuristicDive::solution (this=0x1c8bd20, solutionValue=@0x7fffffffa0b0: 1.0000000000000001e+50, betterSolution=0x1cb3230)

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

#3 0x000000000131f576 in CbcModel::doHeuristicsAtRoot (this=0x1bb0be0, deleteHeuristicsAfterwards=0)

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

#4 0x00000000012ef99f in CbcModel::branchAndBound (this=0x1bb0be0, doStatistics=0)

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

#5 0x0000000001276799 in OsiCbcSolverInterface::branchAndBound (this=0x1ba2220)

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

Best regards,

YC

Change History (1)

comment:1 Changed 8 weeks ago by stefan

  • Resolution set to migrated
  • Status changed from new to closed

This ticket has been migrated to GitHub and will be resolved there: https://github.com/coin-or/Cbc/issues/133

Note: See TracTickets for help on using tickets.