> Dear all,
> 
> I received this comment for the glpkmex, a Matlab MEX interface for
> glpk, but I think it may be of interest not only for Matlab users:
> 
>> 3. there is an extremely annoying bug in GLPK, namely in the file
>> glpmip2.c on line 1105:
>>
>> show_progress(tree);
>>
>> this forces GLPK to display a line on Matlab prompt every time
>> computation is finished. which, if you solve a series of MILP problems,
>> will flood your screen on linux. note that this does not occur on
>> windows. in my opinion, show_progress should only be called if
>>
>> if (tree->msg_lev > 0)
>>    show_progress(tree);
>>
>> i.e. do not call it when param.msglev is set to 0 in glpkmex.

Absolutely correct. The code will be changed in a next release of Glpk.

> 
> I was wondering if the output of show_progress(tree) should be redirected
> with
> lib_set_print_hook as any other output printed by glpk. If this is not
> possible I would like to know why.

The question is not clear, because show_progress (as well as all
other Glpk routines) uses print routine whose behaviour may be changed
by means of lib_set_print_hook.

Andrew Makhorin

P.S. Nicolo, what about Octave interface?



_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to