FS#19300 - [octave] add GLPK support (requires aur/glpk package)

Attached to Project: Arch Linux
Opened by Justin Yang (YZMSQ) - Friday, 30 April 2010, 13:36 GMT
Last edited by Ronald van Haren (pressh) - Tuesday, 04 May 2010, 21:11 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Hi,sorry to interrupt you,but when I invoke glpk() to solve my Linear Programing Problem,it complains:

error: glpk: not supported on this system
error: called from:
error: /usr/share/octave/3.2.3/m/optimization/glpk.m at line 549, column 32

BTW,I have glpk installed via AUR,and my LP problem is from the official manual without any modification:

c = [10, 6, 4]';
a = [ 1, 1, 1;
10, 4, 5;
2, 2, 6];
b = [100, 600, 300]';
lb = [0, 0, 0]';
ub = [];
ctype = "UUU";
vartype = "CCC";
s = -1;

param.msglev = 1;
param.itlim = 100;

[xmin, fmin, status, extra] = ...
glpk (c, a, b, lb, ub, ctype, vartype, s, param);

So,what's wrong with this?

Additional info:
* package version(s)
octave 3.2.3-3
glpk 4.43-1

In addition,I have pkgs miscellaneous-1.0.9 , optim-1.0.12 ,optiminterp-0.3.2 installed for octave.

Hopefully you could fix it,please.




This task depends upon

Closed by  Ronald van Haren (pressh)
Tuesday, 04 May 2010, 21:11 GMT
Reason for closing:  Implemented
Additional comments about closing:  works in octave 3.2.4-1. Brought glpk to [extra]
Comment by Ronald van Haren (pressh) - Friday, 30 April 2010, 13:59 GMT
glpk is not supported in the octave version in the repos. To get this functionality working you probably need to recompile octave with glpk support (so just rebuild it on your machine with glpk installed).

If you think this is a widely used/needed functionality, please provide some more info on the function as it requires bringing in a new dependency.
I didn't look in the glpk function but is it much different from the fminbnd function (I think this just from looking at the example you provide, it may in fact be completely different, just a guess)?
Comment by Justin Yang (YZMSQ) - Friday, 30 April 2010, 16:21 GMT
Thank You For Your Reply.After compiling octave for almost 5 hours,I've to drop it ('cause I have to sleep,hoho).

Loading...