Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  How to solve n problems using n cores/threads simultaneously?

    Posted 10/23/14 03:21 PM

    Originally posted by: maiklb2005


    I have n problems to be solved. Typically, I solve them one by one (using 1 or several threads). Is there a way to assign one problem to exactly one thread thereby solving all the problems at the same time?


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: How to solve n problems using n cores/threads simultaneously?

    Posted 10/23/14 04:45 PM

    If you are using an API from a language that supports parallel threading, then yes it can be done, but you need to handle the parallelism. Set the threads parameter in each of your CPLEX models to 1 and spawn each model in a new thread using whatever method your chosen language provides. In Java, I would wrap the code that solves the model in a class that implements the Runnable interface, then run it in a new Thread object.


    #CPLEXOptimizers
    #DecisionOptimization