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
In reply to Re: GLPK integration
by bliako
in thread GLPK integration
by jo37
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |