After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 783077 - GLPK solver works for continuous variables, but not for integer variables
GLPK solver works for continuous variables, but not for integer variables
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Analytics
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2017-05-25 09:37 UTC by Ricard
Modified: 2017-05-26 23:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Gnumeric spreadsheet with a linear programming problem (2.37 KB, application/x-gnumeric)
2017-05-25 13:09 UTC, Ricard
Details

Description Ricard 2017-05-25 09:37:14 UTC
Environment: Fedora 25
Gnome: 3.22
Gnumeric: 1.12.34
Glpk: 4.59

If I set up a problem with continuous variables, glpk works fine. But if there are integer variables there is an error. I tried installing locally the most recent (4.61) version of glpk, and the result is the same. (The lpsolve program works well in both cases.)
Comment 1 Morten Welinder 2017-05-25 11:31:24 UTC
This is probably related to the surprise glpk format change.

Please attach a sample sheet that shows the problem.
Comment 2 Ricard 2017-05-25 13:09:08 UTC
Created attachment 352571 [details]
Gnumeric spreadsheet with a linear programming problem

I attach a gnumeric spreadsheet with a linear programming problem that happens to have an integer solution. If I tick the box for integer variables, it gives an error. If I don't, it works fine (at least on my system).
Comment 3 Morten Welinder 2017-05-26 23:25:22 UTC
This was indeed further fallout from glpk's format change, :-(

Workaround for now as you discovered: use lpsolve.

This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.