get_verbose

Returns the verbose level.

int get_verbose(lprec *lp);

Return Value

get_verbose returns the current 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. Usefull for debugging purposes and small models.

Parameters

lp

Pointer to previously created lp model. See return value of make_lp, read_lp, read_LP, read_lpt, read_LPT, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI

Remarks

The get_verbose function returns 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. 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;
  int verbose;

  /* Create a new LP model */
  lp = make_lp(0, 0);
  if(lp == NULL) {
    fprintf(stderr, "Unable to create new LP model\n");
    return(1);
  }

  verbose = get_verbose(lp); /* Will return 4 (NORMAL) */

  delete_lp(lp);
  return(0);
}

lp_solve API reference

See Also make_lp, read_lp, read_LP, read_lpt, read_LPT, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI, set_verbose, put_logfunc