From: Ian Jackson Date: Fri, 7 Mar 2014 16:54:20 +0000 (+0000) Subject: error fixes; tried interior but doesn't work (EINSTAB) and docs say cannot cope with... X-Git-Tag: v1~12 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=9a7e69ffde8e96e8dba98679c15920085969d193;p=matchsticks-search.git error fixes; tried interior but doesn't work (EINSTAB) and docs say cannot cope with dense columns of which our X_minimum is one --- 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; }