set_verbose
Set the verbose level.
void set_verbose(lprec *lp, short verbose);
Return Value
set_verbose has no return value.
Parameters
lp
Pointer to previously created lp model. See return value of
make_lp, copy_lp, read_lp,
read_lp_file, read_LP, read_mps, read_MPS
verbose
The verbose level. Can be one of the following values:
CRITICAL (1), SEVERE (2), IMPORTANT (3), NORMAL (4), DETAILED
(5), FULL (6)
Remarks
The set_verbose function sets the verbose level.
lp_solve reports information back to the user. How much information is reported
depends on the verbose level. The default verbose level is CRITICAL (1).
CRITICAL will only occur is an unrecoverable error occurs. lp_solve continues
execution. lp_solve determines how verbose a given message is. For example
specifying a wrong row/column index values is considered as a SEVERE error. verbose
determines how much of the lp_solve message are reported. All messages equal to
and below the set level are reported.
The default reporting device is the console screen. It is possible to set a
used defined reporting routine via put_logfunc.
Example
#include <stdio.h>
#include <stdlib.h>
#include "lpkit.h"
int main(void)
{
lprec *lp;
/* Create a new LP model */
lp = make_lp(0, 0);
if(lp == NULL) {
fprintf(stderr, "Unable to create new LP model\n");
return(1);
}
set_verbose(lp, NORMAL);
delete_lp(lp);
return(0);
}
lp_solve API reference
See Also make_lp, copy_lp,
read_lp, read_lp_file, read_LP, read_mps,
read_MPS, get_verbose,
put_logfunc
|