Recompile binaries with the new support of GLPK 4.60
@tholden has added support for GLPK 4.60, Windows binaries have been updated but this still needs to be done for Mac and Linux.
- [x] Recompile for Linux 64 bits :
glpkcc.mexa64 - [ ] Recompile for Linux 32 bits :
glpkcc.mexglx - [ ] Recompile for Mac OS 64 bits :
glpkcc.mexmaci64
The binary for linux 64 bits has been updated here: https://github.com/VinTz1/glpkmex.git
`>> mex -largeArrayDims -I/usr/local/include glpkcc.cpp /usr/local/lib/libglpk.a
Building with 'g++'. Warning: You are using gcc version '6.3.1-1)'. The version of gcc is not supported. The version currently supported with MEX is '4.9.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release. MEX completed successfully.
`>> glpktest1
LP problem Writing problem data to 'SimpleLP.mps'... 24 records were written GLPK Simplex Optimizer, v4.61
Maybe now the Readme should be updated
I would like to use glpkcc.mexw64 on matlab. But I need to use the optimization option of the glpk code. For example, when you change the right side equations with the function: glp_set_row_bnds(GLP, lin, GLP_FX, vl, 1.0e20). In this case, I will need to interface for glpk subfunctions. Can anybody help me, please?!
glpkmex only support one shot optimization so you cannot modify the constraints.
If you want to modify the constraint, I advise you to use the Julia wrapper.
For a simple to use interface, you can use GLPK through JuMP which supports constraint modification.
ok! Thanks. I'll check these.
I was wondering about your answer. Is possible to program a function such the glpkcc.cpp, but with reoptimization option? And so create the mex file. Or, is the Matlab not support ? Whether not, why? Is it about the pointers?!
I am not an expert in mex file but I don't see any reason why this wouldn't be possible
I have a Windows MEX with the latest version - 4.65.
I compiled it against the static library so it is a stand alone MEX with no need for the DLL.
Anyone interested in it in this package?
Yes! Please share. Thanks!
How do you want me to share it? Can I add a ZIP file here?
OK, it seems I can :-): See https://github.com/RoyiAvital/GLPKMEX.
Thanks! Could you possibly share your build script too?
Hi, I actually did it manually.
But you know what, I will create a MakeMex as a MATLAB Script and put it here.
In order to be agile and independent I created https://github.com/RoyiAvital/GLPKMEX. The package doesn't require doing anything manually, it will download GLPK automatically, compile it and generate the independent MEX.
Currently works on Windows and Linux against GLPK 4.65.
I intend to add macOS support as well.
I hope it will be useful to others.