From 9a7e69ffde8e96e8dba98679c15920085969d193 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 7 Mar 2014 16:54:20 +0000 Subject: [PATCH] error fixes; tried interior but doesn't work (EINSTAB) and docs say cannot cope with dense columns of which our X_minimum is one --- main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 9e7b0ed..e093311 100644 --- a/main.c +++ b/main.c @@ -161,14 +161,14 @@ static void optimise(int doprint) { matrix_entries); int r = glp_simplex(prob, NULL); - PRINTF(" simplex=%d", r); + PRINTF(" glp=%d", r); #define OKERR(e) \ case e: PRINTF(" " #e ); goto out; #define BADERR(e) \ - case e: HAVE_PRINTED; printf(" " #e " CRASHING"); exit(-1); + case e: HAVE_PRINTED; printf(" " #e " CRASHING\n"); exit(-1); #define DEFAULT \ - default: HAVE_PRINTED; printf(" ! CRASHING"); exit(-1); + default: HAVE_PRINTED; printf(" ! CRASHING\n"); exit(-1); switch (r) { OKERR(GLP_ESING); @@ -182,6 +182,8 @@ static void optimise(int doprint) { BADERR(GLP_EOBJUL); BADERR(GLP_EITLIM); BADERR(GLP_ETMLIM); + BADERR(GLP_EINSTAB); + BADERR(GLP_ENOCVG); case 0: break; DEFAULT; } -- 2.30.2