[Coin-discuss] OsiXprSolverInterface stdout control
Luiz Carlos da Costa Junior
lcjunior at ufrj.br
Mon Apr 16 12:55:16 EDT 2012
Hi Stefan,
Thanks a lot for your answer.
Regards,
Luiz
On 16 April 2012 12:54, Stefan Vigerske <stefan at math.hu-berlin.de> wrote:
> Hi,
>
> the output of Xpress is redirected by OsiXpr through the registered
> CoinMessageHandler. The default handler just writes to stdout.
> You can register your own message handler via OsiXprSolverInterface::**
> passInMessageHandler().
> If you just want to disable output, then osixpr->messageHandler()->**setLogLevel(0)
> should do it.
> I think there is no finegrained control of verbosity levels implemented in
> the OsiXpr interface so far.
>
> Stefan
>
> Hi all,
>>
>> I'am using OsiXprSolverInterface and, at the "loadProblem" and
>> "initialSolve" methods, Xpress prints the problem statistics and solution
>> summary at the stdout, as follows:
>>
>> XPRS0000
>>> XPRS0000 Reading Problem Prob1
>>> XPRS0000 Problem Statistics
>>> XPRS0000 2 ( 50 spare) rows
>>> XPRS0000 7 ( 0 spare) structural columns
>>> XPRS0000 8 ( 100 spare) non-zero elements
>>> XPRS0000 Global Statistics
>>> XPRS0000 0 entities 0 sets 0 set members
>>> XPRS0000 Minimizing LP Prob1
>>> XPRS0000 Original problem has:
>>> XPRS0000 2 rows 7 cols 8 elements
>>> XPRS0000 Presolved problem has:
>>> XPRS0000 1 rows 3 cols 3 elements
>>> XPRS0000
>>> XPRS0000 Its Obj Value S Ninf Nneg Sum Inf
>>> Time
>>> XPRS0000 0 .000000 D 1 0 2976.000000
>>> 0
>>> XPRS0000 1 23808.00000 D 0 0 .000000
>>> 0
>>> XPRS0000 Uncrunching matrix
>>> XPRS0000 1 23808.00000 D 0 0 .000000
>>> 0
>>> XPRS0000 Optimal solution found
>>>
>>
>>
>> Is there any way to change the verbose level or redirect the Xpress output
>> to somewhere else? I tried to use setLogFile, but it didn't work.
>>
>> Thanks in advance,
>> Luiz
>>
>>
>>
>>
>> ______________________________**_________________
>> Coin-discuss mailing list
>> Coin-discuss at list.coin-or.org
>> http://list.coin-or.org/**mailman/listinfo/coin-discuss<http://list.coin-or.org/mailman/listinfo/coin-discuss>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20120416/c39a0f79/attachment.html>
More information about the Coin-discuss
mailing list