get_improve
Returns the iterative improvement level.
int get_improve(lprec *lp);
Return Value
get_improve returns the iterative improvement level. Can by any of the
following values:
IMPROVE_NONE (0) |
improve none |
IMPROVE_FTRAN (1) |
improve FTRAN. Should not be used. Experimantal, buggy and slower. |
IMPROVE_BTRAN (2) |
improve BTRAN. Should not be used. Experimantal, buggy and slower. |
IMPROVE_SOLVE (3) |
improve FTRAN + BTRAN. Should not be used. Experimantal, buggy and slower. |
IMPROVE_INVERSE (4) |
Triggers automatic inverse accuracy control in the dual simplex, and when an
error gap is exceeded the basis is reinverted |
Parameters
lp
Pointer to previously created lp model. See return value of
make_lp, read_lp,
read_LP, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI
improve
Remarks
The get_improve function returns 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;
int improve;
/* Create a new LP model */
lp = make_lp(0, 0);
if(lp == NULL) {
fprintf(stderr, "Unable to create new LP model\n");
return(1);
}
improve = get_improve(lp); /* Will return 0 */
delete_lp(lp);
return(0);
}
lp_solve API reference
See Also make_lp,
read_lp, read_LP, read_mps,
read_freemps, read_MPS, read_freeMPS, read_XLI, set_improve
|