in reply to GLPK integration
Hello jo37 a big thank you for porting GLPK to Perl/PDL.
I was wondering whether it is possible as it is to specify the problem as a MathProg program (e.g. https://iuuk.mff.cuni.cz/~bohm/texts/mathprog_intro.html).
I know there is examples/glpsol.c in the GLPK distribution which produces an executable which accepts a MathProg program and solves it. I guess it breaks down the program directives into GLPK API calls somehow, but it is too complex for me to decypher. I was wondering if you know if there is GLPK API call to do this.
I have modified trivially examples/glpsol.c so as to provide glpsol(int argc, char **argv) which then I provide via XS to Perl (published here https://github.com/hadjiprocopis/perl-algorithm-glpk-glpsol). This is better than shelling out to glpsol executable but it is quite lame not only because it works like the executable, with a CLI params array but also it requires the program to be written to disk and it writes the solution to disk as well. So, I am looking for a better solution, namely a proper GLPK API function which reads in MathProg and outputs solution matrix.
bw, bliako
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: GLPK integration
by jo37 (Curate) on Jan 15, 2026 at 18:22 UTC | |
|
Re^2: GLPK integration
by jo37 (Curate) on Jan 16, 2026 at 14:43 UTC | |
by bliako (Abbot) on Jan 17, 2026 at 15:28 UTC | |
by jo37 (Curate) on Jan 17, 2026 at 20:35 UTC | |
by bliako (Abbot) on Jan 19, 2026 at 14:17 UTC | |
by jo37 (Curate) on Jan 19, 2026 at 19:31 UTC | |
|