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

Can I solve an LP with GLPK using multiple threads? #157

Closed
bdvalqui opened this issue Nov 18, 2020 · 2 comments
Closed

Can I solve an LP with GLPK using multiple threads? #157

bdvalqui opened this issue Nov 18, 2020 · 2 comments

Comments

@bdvalqui
Copy link

I was trying to use GLPK to solve an LP where I am using parallelization. However, I got the following error:

lp_free: memory allocation error
Error detected in file env/alloc.c at line 72

Thanks in advance for your help.

@bdvalqui bdvalqui changed the title Can I solve an LP with GLPK in multiple threads? Can I solve an LP with GLPK using multiple threads? Nov 18, 2020
@odow
Copy link
Member

odow commented Nov 19, 2020

Please provide a minimal reproducible example.

There are a number of relevant questions on the Julia discourse that you should read first: https://discourse.julialang.org/search?q=parallel%20category%3A13%20order%3Alatest.

In particular, https://discourse.julialang.org/t/multithreading-unstable-with-jump/49494 has some "gotchas" to be aware of.

@bdvalqui
Copy link
Author

bdvalqui commented Nov 22, 2020

Hi Oscar,

Thanks for your reply. Sorry for not providing a minimal reproducible example.

I was able to solve my issue using Gurobi.jl. My code also works with CPLEX.jl. So, it is definitely an issue with GLPK.jl and multithreading when solving an LP which I still do not understand.

Since I solve my issue, I will close this.

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

No branches or pull requests

2 participants