Status Code from glpk

257 views
Skip to first unread message

Will Matern

unread,
May 22, 2013, 4:00:43 PM5/22/13
to cobra-...@googlegroups.com
I am wondering what the status codes returned by the glpk solver mean. Is there documentation on this? Specifically when I run:
>> FBA = optimizeCbModel(model);
>> FBA.origStat
I get:
ans =

     105
What does this mean? I'm using the glpk solver.

Thanks,

Will

Will Matern

unread,
May 23, 2013, 12:15:16 PM5/23/13
to cobra-...@googlegroups.com
Let me give more details. I'm getting an empty flux vector from Cobra but I don't understand why (hence the interest in the status code). Interestingly if I change a single value in model.ub to zero the problem goes away (Cobra gives me a value). Has anyone had this problem before/ might know why this is happening?

Brandon Barker

unread,
May 23, 2013, 4:57:46 PM5/23/13
to cobra-...@googlegroups.com
Sorry I don't use GLPK; I know gurobi at least has good docs for their status codes. You'd be best to check the origStat with GLPK docs, or ask on their mailing list if that fails.

Will Matern

unread,
May 28, 2013, 1:25:34 PM5/28/13
to cobra-...@googlegroups.com
Brandon, thanks for the reply. I've determined that the status code comes from glpkmex, not glpk. I can't find any documentation on glpkmex. However, in the glpk.m file is the following:
%          If an error occurs, status will contain one of the following
%          codes.
%          Simplex method:
%               101  invalid basis
%               102  singular matrix
%               103  ill-conditioned matrix
%               104  invalid bounds
%               105  solver failed
%               106  objective lower limit reached
%               107  objective upper limit reached
%               108  iteration limit exceeded
%               109  time limit exceeded
%               110  no primal feasible solution

Which isn't very helpful...But I guess this might be a better question for the glpkmex developers.

In the off chance: Has anyone had an issue like this before? What did you do to fix it?
Reply all
Reply to author
Forward
0 new messages