Opened 5 years ago

Closed 7 weeks ago

#148 closed defect (migrated)

Standalone solver option nodeStrategy broken for up/down selection

Reported by: marwhe1 Owned by: tkr
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);

Change History (1)

comment:1 Changed 7 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:

Note: See TracTickets for help on using tickets.