Forum Discussion

FICO's avatar
FICO
Community Manager
3 years ago

Are parallel `XPRBprob.mipOptimize()` calls in BCL handled by the optimizer in parallel?

I have a java application that can create separate unrelated instances of `XPRBprob` and call their respective `mipOptimize()` methods simultaneously, or nearly so, in separate threads. When Xpress receives these requests does it also run them in parallel threads?

1 Reply

  • FICO's avatar
    FICO
    Community Manager

    Yes, each thread will run its own mipOptimize() and these will all run in parallel. In this situation you may want to change the value of the THREADS control: by default a single mipOptimize() may use as many sub-threads (for parallel search) as there are cores on your CPUs. If you do this with many threads then this will try to use many more threads than you have CPUs and this may result in quite some congestion.