Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recompile binaries with the new support of GLPK 4.60 #3

Open
1 of 3 tasks
blegat opened this issue Jul 9, 2016 · 14 comments
Open
1 of 3 tasks

Recompile binaries with the new support of GLPK 4.60 #3

blegat opened this issue Jul 9, 2016 · 14 comments

Comments

@blegat
Copy link
Owner

blegat commented Jul 9, 2016

@tholden has added support for GLPK 4.60, Windows binaries have been updated but this still needs to be done for Mac and Linux.

  • Recompile for Linux 64 bits : glpkcc.mexa64
  • Recompile for Linux 32 bits : glpkcc.mexglx
  • Recompile for Mac OS 64 bits : glpkcc.mexmaci64
VinTz1 pushed a commit to VinTz1/glpkmex that referenced this issue Apr 11, 2017
@VinTz1
Copy link

VinTz1 commented Apr 11, 2017

The binary for linux 64 bits has been updated here: https://github.com/VinTz1/glpkmex.git

@VinTz1
Copy link

VinTz1 commented Apr 11, 2017

`>> 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

@VinTz1
Copy link

VinTz1 commented Apr 12, 2017

Maybe now the Readme should be updated

blegat added a commit that referenced this issue Apr 12, 2017
@silvanflavio
Copy link

silvanflavio commented Jun 9, 2018

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?!

@blegat
Copy link
Owner Author

blegat commented Jun 9, 2018

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.

@silvanflavio
Copy link

ok! Thanks. I'll check these.

@silvanflavio
Copy link

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?!

@blegat
Copy link
Owner Author

blegat commented Jun 10, 2018

I am not an expert in mex file but I don't see any reason why this wouldn't be possible

@RoyiAvital
Copy link

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?

@tholden
Copy link
Contributor

tholden commented Apr 30, 2020

Yes! Please share. Thanks!

@RoyiAvital
Copy link

RoyiAvital commented Apr 30, 2020

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.

@tholden
Copy link
Contributor

tholden commented Apr 30, 2020

Thanks! Could you possibly share your build script too?

@RoyiAvital
Copy link

Hi,
I actually did it manually.

But you know what, I will create a MakeMex as a MATLAB Script and put it here.

@RoyiAvital
Copy link

RoyiAvital commented May 1, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants