[Coin-lpsolver] Clp message

Francois Margot fmargot at andrew.cmu.edu
Mon Nov 7 13:17:46 EST 2005


John:

I use the following code:

#include <cstdio>
#include<stdlib.h>
#include <cfloat>

#include "OsiSolverInterface.hpp"
#include "OsiSolverParameters.hpp"
#include "OsiClpSolverInterface.hpp"

int main() 
{
   char f_name_lp[256];

   printf("Name of the input file (.lp/.mps):\n");
   scanf("%s", f_name_lp);

   OsiClpSolverInterface *clp = new OsiClpSolverInterface;
   clp->messageHandler()->setLogLevel(0);
   clp->readMps(f_name_lp);
   clp->initialSolve();
}

It prints:

Name of the input file (.lp/.mps):
bac.mps
Coin0001I At line 1 NAME
Coin0001I At line 2 ROWS
Coin0001I At line 20 COLUMNS
Coin0001I At line 50 RHS
Coin0001I At line 59 BOUNDS
Coin0001I At line 70 ENDATA
Coin0002I Problem no_name has 16 rows, 10 columns and 38 elements
Coin0511I After Postsolve, objective -3.5, infeasibilities - dual 0 (0), primal 0 (0)

After changing 511,1 to 511,2 in CoinMessage.cpp, the message is not printed 
anymore. An explanation about how the CoinMessage works in relation to Clp
log level would be welcome.

Francois

On Sun, 6 Nov 2005, John J Forrest wrote:

> Francois,
>
> I don't get that message. Line 43 of CoinMessage.cpp should have ,511,1
> and should not print at level 0.
>
> Try changing the 1 to 2
>
> John
>
>
>
> Francois Margot <fmargot at andrew.cmu.edu>
> Sent by: coin-lpsolver-bounces at list.coin-or.org
> 11/06/2005 11:41 AM
>
> To
> coin-lpsolver at list.coin-or.org
> cc
>
> Subject
> [Coin-lpsolver] Clp message
>
>
>
>
>
>
>
> Hi:
>
> I just updated my copy of Clp. Now, even when loglevel is set to 0,
> it prints:
>
> Coin0511I After Postsolve, objective -3.5, infeasibilities - dual 0 (0),
> primal 0 (0)
>
> Is it possible to have this turned off when loglevel is 0?
>
> Francois
>
> _______________________________________________
> Coin-lpsolver mailing list
> Coin-lpsolver at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-lpsolver
>
>



More information about the Clp mailing list