[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Setting message level
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] Setting message level |
Date: |
Wed, 14 Feb 2007 15:50:23 +0300 |
> I have a problem with setting the message level:
>
> lpx_set_int_parm(lp, LPX_K_MSGLEV, 1);
>
> works fine if lpx_simplex(lp) is invoked. If i call lpx_interior(lp)
> instead, it has no effect on the message level.
>
> Could anyone help me, please?
You can use the following fragment:
static int foobar(void *info, char *buf) { return 1; }
...
/* disable output from glpk api routines */
_glp_lib_print_hook(foobar, NULL);
...
/* enable output from glpk api routines */
_glp_lib_print_hook(NULL, NULL);
(Please note that _glp_lib_print_hook is not prototyped in 4.14.)