[Cgl-tickets] [COIN-OR Cut Generator Library] #38: logging code always enabled in CglKnapsackCover

COIN-OR Cut Generator Library coin-trac at coin-or.org
Wed Mar 2 16:27:01 EST 2011


#38: logging code always enabled in CglKnapsackCover
----------------------+-----------------------------------------------------
 Reporter:  juliensf  |       Owner:  somebody
     Type:  defect    |      Status:  new     
 Priority:  minor     |   Milestone:          
Component:  Cgl       |     Version:  trunk   
 Keywords:            |  
----------------------+-----------------------------------------------------
 The KnapsackCover cut generator has some logging code that is always
 enabled,
 in particular it always prints the number of variables that have been
 fixed.

 The problem is that the logging code in the function
 CglKnapsackCover::createCliques.
 The variable logLevel is hardcoded to be 1 (CglKnapsackCover.cpp:3819).
 This means that
 the conditional at CglKnapsackCover.cpp:3979 is always true.  (And that
 many of those just above
 it will always be false.)  More importantly, it means that this cut
 generator doesn't respect
 the usual COIN mechanisms for controlling logging output -- the fact that
 stdout is being
 polluted by these messages is breaking our application.

 (I note that this code was disabled, ie. #if 0 etc ... #endif, in previous
 revisisions, so maybe it
 isn't necessary at all?)

-- 
Ticket URL: <https://projects.coin-or.org/Cgl/ticket/38>
COIN-OR Cut Generator Library <http://projects.coin-or.org/Cgl>
A library of mixed-integer programming cutting plane generators.



More information about the Cgl-tickets mailing list