[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-glpk] glpk prints warnings which lead to failing sagemath tests
From: |
Andrew Makhorin |
Subject: |
Re: [Bug-glpk] glpk prints warnings which lead to failing sagemath tests |
Date: |
Thu, 01 Mar 2018 13:06:00 +0300 |
> Comments from the sage ticket https://trac.sagemath.org/ticket/24824#ticket
>
> Comment (by jdemeyer):
>
> Replying to [comment:5 thansen]:
> > GLP_MSG_OFF is not a relevant option to disable terminal/stdout output.
>
> It's not our goal to completely disable terminal output. We still want to
> see error messages for example.
To fix the bug please replace lines 923-930 in glpk/src/draft/glpios03.c
#if 1 /* 16/III-2016 */
if (((glp_iocp *)T->parm)->flip)
#if 0 /* 20/I-2018 */
xprintf("WARNING: LONG-STEP DUAL SIMPLEX WILL BE USED\n");
#else
xprintf("Long-step dual simplex will be used\n");
#endif
#endif
with the following ones:
#if 1 /* 01/III-2018 */
if (((glp_iocp *)T->parm)->flip)
if (T->parm->msg_lev >= GLP_MSG_ALL)
xprintf("Long-step dual simplex will be used\n");
#endif
Please note that this change will appear in the next release of glpk.
>
> Comment (by jdemeyer):
>
> It would also be good to know what the message "Long-step dual simplex
> will be used" means. Is it supposed to be a warning to say that we are
> doing something wrong?
>
>
Now (in glpk 4.65) it is an informational message, not warning.
I again would like to repeat that parsing of the solver standard output
to perform testing is not a good idea, because the glpk api does not
specify it. If you say to me what namely do you need to test, I could
suggest a more relevant test.
Best regards,
Andrew Makhorin
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Bug-glpk] glpk prints warnings which lead to failing sagemath tests,
Andrew Makhorin <=