COIN-OR::LEMON - Graph Library

Opened 11 years ago

Closed 10 years ago

#9 closed defect (fixed)

Verbosity of the messages for CPLEX

Reported by: Alpar Juttner Owned by: Balazs Dezso
Priority: major Milestone: LEMON 1.1 release
Component: core Version: hg main
Keywords: lp, glpk, cplex Cc:
Revision id:

Description

The glpk version of the lp interface has a function

void messageLevel(int m);

This functionality would also be useful for CPLEX or all lp solvers.

This ticket is a copy of report #29 of the old bug tracking system. It refers to svn trunk -r2534. The original report was posted by Janos Tapolcai.

Attachments (2)

message_handling.bundle (24.1 KB) - added by Balazs Dezso 10 years ago.
Log verbosity settings in various solvers
0cad57c38b52.patch (18.6 KB) - added by Balazs Dezso 10 years ago.
Unified message handling

Download all attachments as: .zip

Change History (11)

comment:1 Changed 11 years ago by Alpar Juttner

Milestone: Post 1.0

comment:2 Changed 11 years ago by Balazs Dezso

Owner: changed from Alpar Juttner to Balazs Dezso

comment:3 Changed 11 years ago by Balazs Dezso

Status: newassigned

Changed 10 years ago by Balazs Dezso

Attachment: message_handling.bundle added

Log verbosity settings in various solvers

comment:4 Changed 10 years ago by Balazs Dezso

I have uploaded a bundle for message handling in various solvers.

comment:5 in reply to:  4 Changed 10 years ago by Alpar Juttner

Replying to deba:

I have uploaded a bundle for message handling in various solvers.

I have a short look at the attached bundle file. It looks good. My problem is that If I want to see the messages with GLPK, I should write

lp.messageLevel(GlpkBase::MESSAGE_FULL_OUTPUT);

while with Clp it reads

lp.messageLevel(CbcLp::MESSAGE_VERBOSE_OUTPUT);

and with CBC it reads

lp.messageLevel(CbcMip::MESSAGE_FULL_OUTPUT);

and with CPLEX it reads

lp.messageLevel(CplexBase::MESSAGE_NORMAL_OUTPUT);

It makes it unnecessary hard to switch between the solvers. I suggest declaring a unified set of message levels and move this enum to the common base-class.

comment:6 in reply to:  4 Changed 10 years ago by Alpar Juttner

Replying to deba:

I have uploaded a bundle for message handling in various solvers.

I prefer to see a cross reference to the ticket (i.e. "(#9)") in the log of commits belonging to a ticket.

Changed 10 years ago by Balazs Dezso

Attachment: 0cad57c38b52.patch added

Unified message handling

comment:7 Changed 10 years ago by Balazs Dezso

The patch [0cad57c38b52] contains unified message handling for solvers.

comment:8 Changed 10 years ago by Balazs Dezso

Version: svn trunkhg main

comment:9 Changed 10 years ago by Alpar Juttner

Resolution: fixed
Status: assignedclosed

I merged everything here into a single chgset and pushed to the main branches, see [745e182d0139].

Note: See TracTickets for help on using tickets.