# set_verbose

Set the verbose level.

void set_verbose(lprec *lp, int 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, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI

verbose

The verbose level. Can be one of the following values:

NEUTRAL (0) | Only some specific debug messages in de debug print routines are reported.
CRITICAL (1) | Only critical messages are reported. Hard errors like instability, out of memory, ...
SEVERE (2) | Only severe messages are reported. Errors.
IMPORTANT (3) | Only important messages are reported. Warnings and Errors.
NORMAL (4) | Normal messages are reported. This is the default.
DETAILED (5) | Detailed messages are reported. Like model size, continuing B&B improvements, ...
FULL (6) | All messages are reported. Useful for debugging purposes and small models.

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 NORMAL (4). 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 "lp_lib.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, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI, get_verbose, put_logfunc