[Coin-bcpdiscuss] Controlling Clp verbosity: a proposal.
acw at ascent.com
acw at ascent.com
Tue Aug 23 17:11:56 EDT 2005
In response to my query about controlling Clp verbosity in the
BranchAndCut
example, M. Margot was kind enough to suggest the following:
> Add
>
> In the file LP/BB_lp.cpp, modify BB_lp::initialize_solver_interface()
to:
>
> OsiClpSolverInterface * clp = new OsiClpSolverInterface;
> clp->messageHandler()->setLogLevel(0);
> return clp;
I did something similar to his suggestion, but I did it by adding a new
parameter, which I called BB_LPLogLevel.
Is this something that would be appropriate to migrate back to the
repository?
I tested it and it works. Below here I summarize the changes that were
required.
We are new to this community, and would appreciate advice about how to
propose
changes, and where to look for additional information.
==Details==
(All referenced files are under Examples/BranchAndCut/.)
1. In include/BB_lp_param.hpp, in the struct BB_lp_par, in the enum
int_params,
replace "int_dummy" with "LPLogLevel".
2. In LP/BB_lp_param.cpp:
A. In BCP_parameter_set<BB_lp_par>::create_keyword_list(), after //
IntPar,
insert
keys.push_back(make_pair(BCP_string("BB_LPLogLevel"),
BCP_parameter(BCP_IntPar, LPLogLevel)));
B. In BCP_parameter_set<BB_lp_par>::set_default_entries(), after //
IntPar,
insert
set_entry(LPLogLevel, 1);
3. In LP/BB_lp.cpp, modify BB_lp::initialize_solver_interface() to:
OsiClpSolverInterface* clp = new OsiClpSolverInterface;
clp->messageHandler()->setLogLevel(par.entry(BB_lp_par::LPLogLevel));
return clp;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/bcp/attachments/20050823/14a0d821/attachment.html
More information about the Coin-bcpdiscuss
mailing list