[Cbc-tickets] [COIN-OR Branch-and-Cut MIP Solver] #148: Standalone solver option nodeStrategy broken for up/down selection

COIN-OR Branch-and-Cut MIP Solver coin-trac at coin-or.org
Tue Apr 8 16:39:04 EDT 2014


#148: Standalone solver option nodeStrategy broken for up/down selection
--------------------+-----------------
Reporter:  marwhe1  |      Owner:  tkr
    Type:  defect   |     Status:  new
Priority:  minor    |  Component:  Cbc
 Version:  2.8.8    |   Keywords:
--------------------+-----------------
 Some of the values for this option are updepth, downdepth, upfewest,
 downfewest.

 The code to distinguish the up/down direction seems to depend on the
 parity of the integer representing the option value, but this is the code:

 int way = (((nodeStrategy - 1) % 1) == 1) ? -1 : +1;
 babModel_->setPreferredWay(way);

 It seems that this should instead be:

 int way = (((nodeStrategy - 1) % 2) == 1) ? -1 : +1;
 babModel_->setPreferredWay(way);

--
Ticket URL: <https://projects.coin-or.org/Cbc/ticket/148>
COIN-OR Branch-and-Cut MIP Solver <http://projects.coin-or.org/Cbc>
An LP-based branch-and-cut MIP solver.



More information about the Cbc-tickets mailing list