I've just begun using GLPK (version 4.8), and I notice that you give a "zero element not allowed" in glplpx1.c if lpx_set_mat_row, etcetera are called with some zero matrix entries.

In many cases, however, it is convenient for the user not to have to check whether a matrix element is zero before calling GLPK, and it seems to me that this error is unnecessary. In particular, inside lpx_set_mat_row etcetera you could simply check for zero matrix elements and skip them.

I've attached a patch to accomplish this.

Cordially,
Steven G. Johnson

Attachment: diff.out
Description: Binary data

_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to