Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

CP Optimizer

  • 1.  CP Optimizer

    Posted Mon August 19, 2013 11:59 AM

    Originally posted by: Adriano199


    Hi,

    Is there a way to launch various solver in parallel at the same time?

    Best reagards,

    Adriano


    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: CP Optimizer

    Posted Wed August 21, 2013 11:46 AM

    Originally posted by: GGR


    Hi

    I figure out you mean several instance of some model with different data. Can you confirm.

    If my previous assertion is true, the answer to your question is no.

    The CP Optimizer library is multiple thread safe. If the model instantiation you code is also multiple threads safe, you must distribute the different instances on the calculation servers by yourself.

     

    Hope that helps

     


    #CPOptimizer
    #DecisionOptimization


  • 3.  Re: CP Optimizer

    Posted Wed August 21, 2013 12:07 PM

    Originally posted by: Adriano199


    Hi,

    It's just that I thought it was possible to run parallel instances.

    One more question (i'm a beginner in this world) what do you mean by " model instantiation you code is also multiple threads safe".

    Thank you for yor help.

    Regards


    #CPOptimizer
    #DecisionOptimization


  • 4.  Re: CP Optimizer

    Posted Fri August 23, 2013 08:25 AM

    Originally posted by: GGR


    Hi Adriano

     

    May be I have not been clear enough.

    You can solve an instance of a model in parallel using several threads with CP Optimizer. The parameter to considers is IloCP::Workers that give the number of thread working to solve one mode, There is no predefined way to solve the same model on different machine neither to run different instance of model in parallel: You must develop your own layer for such cases.

     

    By " model instantiation you code is also multiple threads safe".I mean if you want to share your own code between several threads you must take care it is safe. That is several threads cannot modify the same data concurrently without protection: for example a global data must be the same for all thread.

    .I hope it is clearer.

     

    Cheers

     

     


    #CPOptimizer
    #DecisionOptimization