set_improve

Specifies the iterative improvement level.

void set_improve(lprec *lp, int improve);

Return Value

set_improve has no return value.

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

improve

Specifies the iterative improvement level. Can by any of the following values:

IMPROVE_NONE (0) improve none
IMPROVE_FTRAN (1) improve FTRAN
IMPROVE_BTRAN (2) improve BTRAN
IMPROVE_SOLVE (3) improve FTRAN + BTRAN
IMPROVE_INVERSE (4) triggers automatic inverse accuracy control in the dual simplex, and when an error gap is exceeded the basis is reinverted

Remarks

The set_improve function specifies the iterative improvement level.
The default is IMPROVE_NONE.

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_improve(lp, IMPROVE_SOLVE);

  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, get_improve