bug-glpk
[Top][All Lists]
Advanced

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

[Bug-glpk] Re: Possibly a bug


From: Andrew Makhorin
Subject: [Bug-glpk] Re: Possibly a bug
Date: Thu, 29 Jan 2009 17:41:24 +0300

> I found a strange behaviour of glpk library.
> The glp_write_lp function aborts the entire program
> when problem to write is empty.
> I don't think it is a desired behaviour (especially when problems
> are generated from dynamic data)
> In my opinion, this function should instead return an
> error code when such a situation happens.
> I have joined a simple sample program that illustrates
> the problem.

Thank you for the bug report.

This undesirable behavior came from earlier versions of the package,
where empty instances were not allowed.

The problem will be fixed in the next release. (A possible solution is
to write the instance even it is empty.)

To prevent abnormal termination you can check that the instance to be
written with glp_write_lp has at least one row and one column.





reply via email to

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