set_break_numeric_accuracy

Sets the accuracy values when solve should fail.

void set_break_numeric_accuracy(lprec *lp, REAL accuracy);

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

accuracy

From which minimal accuracy should solve fail.

Remarks

When accuracy from get_accuracy is larger than this values, optimization will fail with ACCURACYERROR.
By default, accuracy is 5e-7.

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_break_numeric_accuracy(lp, 1e-5);

  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_accuracy, get_break_numeric_accuracy