I’m using Lindo to find a global solution to a large MINLP flow network optimization problem. I’m attempting to reduce my solve time by parallelizing Lindo. I tried setting threads to n=-2 using the GAMS command line parameter ‘threads’ based on https://www.gams.com/mccarlGuide/threads.htm
for 50 threads. My questions are (1) is this the correct syntax to activate parallel processing in GAMS/Lindo and (2) is there a way to set reserved cores in Lindo similar to ‘option threads = -#’ in the GAMS options? Thanks!
Your syntax is correct. It does not matter whether you set the threads parameter through an option statement in GAMS, as a command line parameter or through NUM_THREADS in a lindo option file (read abooy sover option files here).
You can see that multiple threads have been used in the lindo log through statistics as the following.
Even though solvers may be able to utilize multiple threads in general, there is no guarantee that this always improves performance. Not all parts of of the solution process can be parallelized efficiently.
If you need further assistance, I suggest that you share your log file and code here, to give other forum users the chance to experiment with your model to eventually come up with suggestions how to improve performance.
Thank you for replying and confirming that my syntax is correct. I will keep experimenting with the code, and if I need further assistance I will post code and log files. Cheers!