bug-glpk
[Top][All Lists]
Advanced

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

[Bug-glpk] patch: remove spurious "zero element not allowed" errors


From: Steven G. Johnson
Subject: [Bug-glpk] patch: remove spurious "zero element not allowed" errors
Date: Tue, 24 May 2005 22:33:16 -0000

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: Text document


reply via email to

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