Hello John ------------------------------------------------------------ To: "help-glpk@gnu.org" <help-glpk@gnu.org> Subject: [Help-glpk] Assertion failed: l[k] != -DBL_MAX, Error detected in file glpios02.c at line 312 From: John Kalman <johnkalma...@yahoo.com> Date: Tue, 28 Aug 2012 08:21:21 -0700 (PDT) ------------------------------------------------------------
> Hi, > > I am running GLPK 4.45 on linux SuSe10.x86_64, I > recently got several times the followig run time > error: > > Assertion failed: l[k] != -DBL_MAX > Error detected in file glpios02.c at line 312 I take it that this error occurs during the translation phase and not during the solution process. I would look to see how you are setting the bounds on your variables. If this yields nothing, then it could be a bug in the python wrapper. Just some guesses on my behalf, mind you. > I am running GLPK from python (using cvx.opt.glpk > binding). What could be the reason for this and why is > there an assertion on line 312? I don't understand the second part of your question. The line count refers to 'glpios02.c' and not anything you wrote. Or do you mean that assertions should not be used in production code. If so, see here for a C-based solution (that could perhaps be added to the python wrapper): http://en.wikibooks.org/wiki/GLPK/Error_handling Else see here: http://en.wikipedia.org/wiki/Assertion_(computing) > Thanks > John HTH, Robbie --- Robbie Morrison PhD student -- policy-oriented energy system simulation Technical University of Berlin (TU-Berlin), Germany University email (redirected) : morri...@iet.tu-berlin.de Webmail (preferred) : rob...@actrix.co.nz [from Webmail client] _______________________________________________ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk