bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-glpk] [Fwd: M_MAX etc. should appear in docs]


From: Andrew Makhorin
Subject: Re: [Bug-glpk] [Fwd: M_MAX etc. should appear in docs]
Date: Fri, 23 Jun 2017 10:02:34 +0300

> Please forgive the “drive-by bug report”; if this has already been
> reported or is already known and marked WONTFIX, I apologize. I also
> apologize for not formulating this as a pull request; it’s essentially
> a doc request.
> 
> I’m in the process of building a tiny FFI for a subset of the glpk API
> —many many thanks for implementing it! 
> 
> The issue is this: the constants M_MAX, N_MAX, and NNZ_MAX appear only
> in the source, and not (AFAICT) in either the include file glpk.h or
> (better) in the glpk.pdf docs; I would specifically have expected to
> see it in the documentation for, e.g., glp_add_rows. It’s important
> because this is apparently one of those errors that cause a full-on
> process halt; an FFI that wants to protect its users needs to know
> about this limit.
> 
> Finally, apologies if I’m misunderstanding something about this.
> 

By glpk design exceeding one of these limits is considered in the same
sense as, for example, insufficient memory (i.e. as a "lack of
resources" failure); in this case the corresponding glpk routine calls
glp_error, which displays an error message and abnormally terminates the
program. You may prevent abnormal termination using the routine
glp_error_hook. For more details please see the glpk reference manual
(glpk.pdf) included in the distribution.


Andrew Makhorin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]