<br><font size=2 face="sans-serif">Edgardo,</font>
<br>
<br><font size=2 face="sans-serif">When I tried what you suggested it did
not work as I did not get any error messages when I tried an example. &nbsp;As
I have said many times before, the very loosely connected structure of
Coin makes unified message handling difficult. &nbsp;With Cbc at least
you can get at the solver and so affect its message handling. &nbsp;For
Clp there was no way to affect the Coin messages, even though you could
make sure they shared a common message handler. &nbsp;I intend to modify
this by the end of the week so that the Coin messages will be visible to
the Clp user.</font>
<br>
<br><font size=2 face="sans-serif">John Forrest</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Edgardo Fuchs &lt;edgardo_fuchs@mi.cl&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: coin-discuss-bounces@list.coin-or.org</font>
<p><font size=1 face="sans-serif">12/05/2005 12:50 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
edgardo_fuchs and Discussions about open source software for Operations
Research &nbsp; &nbsp; &nbsp; &nbsp;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">coin-discuss@list.coin-or.org</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">[Coin-discuss] Re: Message
Control</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>John,<br>
<br>
Thank you for your prompt response.<br>
<br>
Solving a linear model with OsiClp, assuming that clpModelPtr is a pointer
to the Clp model, returned by getModelPtr():<br>
<br>
clpModelPtr-&gt;messagesPointer()-&gt;setDetailMessages(10, 0, 2999);<br>
<br>
effectively turns off informational messages from Clp, but does not turn
off messages from Coin (example Coin0506I Presolve).<br>
<br>
The following alternative to explicitly turn on the warning and error messages
seems to work fine:<br>
<br>
clpModelPtr-&gt;messageHandler()-&gt;setLogLevel(0);<br>
clpModelPtr-&gt;messagesPointer()-&gt;setDetailMessages(3, 3000, 9000);<br>
<br>
Although, it seems the newLevel values have different meaning than the
setLogLevel parameter. Where can I find the possible values and their meanings
for the newLevel &nbsp;parameter?<br>
<br>
Regards,<br>
Edgardo Fuchs<br>
<br>
<br>
</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:coin-discuss-request@list.coin-or.org"><font size=3 color=blue><u>coin-discuss-request@list.coin-or.org</u></font></a><font size=3>
wrote: </font>
<br><font size=3><tt>Send Coin-discuss mailing list submissions to<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</tt></font><a href="mailto:coin-discuss@list.coin-or.org"><font size=3 color=blue><tt><u>coin-discuss@list.coin-or.org</u></tt></font></a><font size=3><tt><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</tt></font><a href="http://list.coin-or.org/mailman/listinfo/coin-discuss"><font size=3 color=blue><tt><u>http://list.coin-or.org/mailman/listinfo/coin-discuss</u></tt></font></a><font size=3><tt><br>
or, via email, send a message with subject or body 'help' to<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</tt></font><a href="mailto:coin-discuss-request@list.coin-or.org"><font size=3 color=blue><tt><u>coin-discuss-request@list.coin-or.org</u></tt></font></a><font size=3><tt><br>
<br>
You can reach the person managing the list at<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</tt></font><a href="mailto:coin-discuss-owner@list.coin-or.org"><font size=3 color=blue><tt><u>coin-discuss-owner@list.coin-or.org</u></tt></font></a><font size=3><tt><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Coin-discuss digest...&quot;<br>
<br>
<br>
Today's Topics:<br>
<br>
 &nbsp; 1. Message control (Edgardo Fuchs)<br>
 &nbsp; 2. Re: Message control (John J Forrest)<br>
 &nbsp; 3. Re: Message control (John J Forrest)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 02 Dec 2005 21:19:23 -0300<br>
From: Edgardo Fuchs </tt></font><a href=mailto:edgardo_fuchs@mi.cl><font size=3 color=blue><tt><u>&lt;edgardo_fuchs@mi.cl&gt;</u></tt></font></a><font size=3><tt><br>
Subject: [Coin-discuss] Message control<br>
To: COIN </tt></font><a href="mailto:coin-discuss@list.coin-or.org"><font size=3 color=blue><tt><u>&lt;coin-discuss@list.coin-or.org&gt;</u></tt></font></a><font size=3><tt><br>
Message-ID: </tt></font><a href=mailto:4390E48B.6060109@mi.cl><font size=3 color=blue><tt><u>&lt;4390E48B.6060109@mi.cl&gt;</u></tt></font></a><font size=3><tt><br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
An HTML attachment was scrubbed...<br>
URL: </tt></font><a href="http://list.coin-or.org/pipermail/coin-discuss/attachments/20051202/76fb1aa4/attachment-0001.html"><font size=3 color=blue><tt><u>http://list.coin-or.org/pipermail/coin-discuss/attachments/20051202/76fb1aa4/attachment-0001.html</u></tt></font></a><font size=3><tt><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 3 Dec 2005 05:39:34 -0500<br>
From: John J Forrest </tt></font><a href=mailto:jjforre@us.ibm.com><font size=3 color=blue><tt><u>&lt;jjforre@us.ibm.com&gt;</u></tt></font></a><font size=3><tt><br>
Subject: Re: [Coin-discuss] Message control<br>
To: Discussions about open source software for Operations Research<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</tt></font><a href="mailto:coin-discuss@list.coin-or.org"><font size=3 color=blue><tt><u>&lt;coin-discuss@list.coin-or.org&gt;</u></tt></font></a><font size=3><tt><br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</tt></font><a href="mailto:OF2BF965AF.8A89BBEE-ON052570CC.0039C7E4-052570CC.003A81F9@us.ibm.com"><font size=3 color=blue><tt><u>&lt;OF2BF965AF.8A89BBEE-ON052570CC.0039C7E4-052570CC.003A81F9@us.ibm.com&gt;</u></tt></font></a><font size=3><tt><br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
Edgardo,<br>
<br>
You can use setDetailMessages (examples in Cbc/Samples) to set the detail
<br>
level for all messages &lt; 6000 to high.<br>
<br>
At present the best way would be to use one form of setDetailMessages to
<br>
switch off all messages and then switch back the &gt;= 6000 messages one
by <br>
one.<br>
<br>
As that seems inelegant I will add a new setDetailMessage to do by range.
<br>
Then it would be<br>
<br>
.messageHandler()-&gt;setDetailMessage(3,0,5999);<br>
<br>
Should be in a few hours.<br>
<br>
John Forrest<br>
<br>
<br>
<br>
Edgardo Fuchs </tt></font><a href=mailto:edgardo_fuchs@mi.cl><font size=3 color=blue><tt><u>&lt;edgardo_fuchs@mi.cl&gt;</u></tt></font></a><font size=3><tt>
<br>
Sent by: </tt></font><a href="mailto:coin-discuss-bounces@list.coin-or.org"><font size=3 color=blue><tt><u>coin-discuss-bounces@list.coin-or.org</u></tt></font></a><font size=3><tt><br>
12/02/2005 07:19 PM<br>
Please respond to<br>
edgardo_fuchs and Discussions about open source software for Operations
<br>
Research <br>
<br>
<br>
To<br>
COIN </tt></font><a href="mailto:coin-discuss@list.coin-or.org"><font size=3 color=blue><tt><u>&lt;coin-discuss@list.coin-or.org&gt;</u></tt></font></a><font size=3><tt><br>
cc<br>
<br>
Subject<br>
[Coin-discuss] Message control<br>
<br>
<br>
<br>
<br>
<br>
<br>
Dear COIN list,<br>
<br>
I need to control the message output, prinitng only those messages with
<br>
return code greater or equal than 6000 (ie warning or error).<br>
<br>
I tried using setLogLevel, but even level 1 is too verbose, including <br>
informational messages.<br>
<br>
Is there another option to control the output in that way, or do I need
to <br>
write a message handler function?<br>
<br>
Regards,<br>
Edgardo Fuchs<br>
<br>
 &nbsp;</tt></font>
<br>
<br><font size=3><tt>-- <br>
<br>
Edgardo Fuchs<br>
<br>
Santiago, Chile<br>
<br>
Tel: +56 (2) 435 0090<br>
Cel: +56 9837 8433<br>
</tt></font><font size=2><tt>_______________________________________________<br>
Coin-discuss mailing list<br>
Coin-discuss@list.coin-or.org<br>
http://list.coin-or.org/mailman/listinfo/coin-discuss<br>
</tt></font>
<br>