Opened 14 years ago

Closed 20 months ago

#11 closed enhancement (migrated)

Add loglevel control to Osi

Reported by: leolopes Owned by: mjs
Priority: major Milestone:
Component: Osi Base Class Version: 1.0
Keywords: Cc: matt

Description

As of v 0.95, there is no direct loglevel control in Osi. Indirectly, one can use passInMessageHandler, but this typically has limited effect, since each solver has its own message handling mechanism in addition to Osi's. Instead, this ticket proposes two enhancements:

1) make passInMessageHandler virtual, so that solver-specific actions can be taken when the Osi message handler is replaced.

2) add virtual set/get logLevel(int) methods, which would provide a sufficiently general high-level control of messaging. What the actual int means should be left up to the solver.

Change History (2)

comment:1 Changed 13 years ago by lou

Essentially unchanged as 0.97 moves to 0.98.

You can use messageHandler()->setLogLevel() to adjust the log level of the OSI handler, and the OsiDoReducePrintLevel hint to (try to) affect the print level of the solver. But this is admittedly clumsy. Most annoying, there's no way to get at the message handler for a CoinMpsIO object, which by default is annoyingly chatty.

There's a lot to be said for virtual methods here, because Leo's right --- each underlying solver has its own i/o control.

comment:2 Changed 20 months 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/Osi/issues/11

Note: See TracTickets for help on using tickets.