Originally posted by: BerkUstun
I'm currently running Cplex on an 8-core machine and would like to take advantage of the parfor function in MATLAB to solve a number of LPs in parallel. Essentially, this may be more of a MATLAB question than a Cplex question, in which case please feel free to point it out.
My main issue in using the parfor function is the transparency requirement, which stems from the fact that parallel threads cannot reference the same data and effectively forces me to set up an LP from scratch each time I aim to solve them in parallel.
I am wondering:
1. Is there an easy way to copy a Cplex LP object in MATLAB? This way, I can simply copy the object within the parfor loop instead of having to create it from scratch?
2. In my past experience, I remember Cplex sometimes displayed that it solved an LP in 'Parallel mode.' What exactly is parallel mode? Does this mean it's using more than a single processor to solve the LP? If so, is there a way to tweak these settings
3. (Somewhat unrelated) My understanding is that the CPLEX API in MATLAB does not solve LPs within MATLAB but copies the information into another environment using cplexlink. Is there a way to speed up this process? Would it help if I switched from CPLEX API in MATLAB to say the CPLEX API in C or C++? Effectively, I believe that the access time might be the issue that is slowing down my code the most.
#CPLEXOptimizers#DecisionOptimization