Hey guys,
I am using Gurobi's Matlab Class API to optimize multiple integer problems in parallel. The problem data is similar except one vector that changes.
When I am using a parallel loop (parfor) to run separate Gurobi optimizations on the 4 workers of my machine I experience a strange behaviour. The runtime Gurobi needs to retrieve the solutions is significantly longer when the problems are run in parallel than what they are when they are run sequentially (and we are talking of up to 100% longer). When I am comparing the parallel and the sequential run the input data is completely identical and Gurobi also reports same results using the same solution path (according to the log file).
I am pretty sure it is not because of oversubcription of threads (I have 4 cores with 2 threads each and thus I am using 4 workers and Gurobi is limited to use 2 threads --> should be fine I guess) or because the transmitting of the data needs too long. I already checked that and the data transmission times are negligible. Plus the runtime is taken from Gurobi itself, so shouldn't be affected by any such issues.
I experience the same behaviour with CPLEX.
Any ideas why this can happen?
--
---
You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.