Originally posted by: davidsf
Dear IBM,
I am a PhD student in Pisa and my tutors own the Academic licence under the IBM academic initiative.
I am facing with a big problem using parallel computing in matlab. This problem appears on the computer of the lab whose characteristics follows below:
Hardware:
-Motherboard: intel s5520hc
-Processors: 2 x intel Xeon X5650 (2 phisical processors)
-RAM: 16 Gb (2x8Gb)
Software:
-Windows 10 Enterprise
-Matlab 2016a
-Cplex 12.7
I run a code summarized below and evaluated the time required to be computed.
parfor i=1:NP
for i=1:NI
->initialization the matrix A, b, Aeq, beq, f_obj, ctype, and x0(x0 = [])
[x,fobiettivo,exitflag,output]=cplexmilp(f_obj, A, b, Aeq, beq,[],[],[], [], [], ctype, x0);
end
end
Unexpectly, I observed that simulations with 2 threads in parallel (NP = 2) requires a lot of time more to be executed (745.78 sec.), while running it using a normal for instead of the parfor require just 11.75 sec.
Using the parfor the processor goes at the 100% while with a normal for it stays down less than 50%, and the computing time is around 70 time lower.
Sometimes the combination of MATLAB 2016a + CPLEX 12.7 crashed, too, but it happens usually when I use the class Cplex instead of the cplexmilp function. Currently, I need just the cplexmilp, so I am not so interested in the class function. I built the model also with the class in order to try if it could be better.
The problem is that with the cplexmilp, the computational burden increases instead of reducing
Unfortunately, I don't think I can give you the code up to now because it is a research for a paper. Maybe, when the paper is published I could give you the code by private to developers, but I have to ask to the professors.
None of this problems happens using my computer Windows 7 with MATLAB 2016a + CPLEX 12.6.1 and the parallel computing works fine.
In addition, I was wondering if in the meantime I could try to install also into the lab computer the previoud version 12.6.1, but I would need the installer back. I would really appreciate if you could provide me the link.
Thanks in advace,
Davide
#CPLEXOptimizers#DecisionOptimization