Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  thread count

    Posted 10/28/10 01:59 PM

    Originally posted by: pjede


    Hello, does anybody know of a way how i can determine the licensed number of threads? I use CPLEX 11.0 and the activation goes via an ilm file through a remote server over which I have no control. Is there a call in code or cplex interactive that can give me this information? Already much thanks.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: thread count

    Posted 10/28/10 03:29 PM

    Originally posted by: SystemAdmin


    In the interactive, you could just try to set the threads parameter to a ridiculously large value. This will give you a message that the setting was not possible and the maximal thread count is n:

    CPLEX> set threads 10000000
    Value can be no larger than 4.
    CPLEX>

    If you are working in a scripting environment, you could just launch the interactive with this single command and then parse the output to get the maximal number of threads.

    In the C API, you can just query the maximal value of the "threads" parameter with
    int maxthreads;
       CPXinfointparam (env, CPX_PARAM_THREADS, NULL, NULL, &maxthreads);
    

    In the other APIs there are similar ways to do this, for example
    int maxthreads = cplex.getMax (IloCplex::Threads);
    


    Please note that when you explicitly set the threads parameter in CPLEX 11.0, you are implicitly switch to opportunistic parallel mode. If you want to keep deterministic parallel then you also need to explicitly set the parallel mode parameter.
    If you just want CPLEX to use the maximal number of available cores, then you do not need to do anything. This is the default behavior.
    Tobias
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: thread count

    Posted 10/29/10 10:16 AM

    Originally posted by: pjede


    Thanks, that gave me the rather bumming news that im licensed to only 1 thread... (and yes I do have a multi core processor :P)
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: thread count

    Posted 10/29/10 01:45 PM

    Originally posted by: SystemAdmin


    You should consider upgrading to CPLEX 12.2. There you will get parallel algorithms without any thread number restriction for free. And if you are an academic, you could even get the CPLEX 12.2 license for free through the IBM academic initiative program.

    Tobias
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: thread count

    Posted 10/29/10 05:31 PM

    Originally posted by: pjede


    thanks mate, i was already asking my university teacher to apply :D. I only still need a license key and ill be on my way.
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: thread count

    Posted 11/02/10 07:25 AM

    Originally posted by: pjede


    Well that went like a charm and I'm enjoying cplex optimaztion studio academic version 12.2 x64 now :D. One question though: I see there is an update from 12.2.0.0 (which I currently have) to 12.2.0.1. However the updater complains that cplex 12.2 optimization studio is not installed yet. Is it intentionally that you cannot update the academic versions?
    #CPLEXOptimizers
    #DecisionOptimization