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
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
|
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]
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]
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)?