Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  License checking too frequently

    Posted 04/26/23 10:08 AM

    Hello everyone.
    I noticed that my IBM CPLEX license is beeing checked too frequently (and also it takes about 3 seconds for me): sometimes after 5 seconds, sometimes after 15 seconds. So probably for some reason validation of my key is not cached as it should? Can anyone please suggest what can I do about it? At this point CPLEX spends much more time checking license than doing actual problem solving.

    Thank you.



    ------------------------------
    Jora Venediktov
    ------------------------------


  • 2.  RE: License checking too frequently

    Posted 04/28/23 03:41 AM

    Hello 

    We don't observe any latency on the server side . 

    Could you verify you use the correct variable CPLEX_STUDIO_KEY_SERVER ? (https://www.ibm.com/support/pages/entering-your-api-key-and-setting-cplexstudio-environment-variables)

    You can evaluate  your key using the  the following command (using your API key ) : 

    curl -X POST 'https://cos-api.mybluemix.net/cos/query/v1/apikeys?apikey=XXXXXX'

    cf https://www.ibm.com/support/pages/node/6954451

    Regards



    ------------------------------
    Christophe Gefflot
    ------------------------------



  • 3.  RE: License checking too frequently

    Posted 04/28/23 04:52 AM

    Hello Christophe. Thank you for the reply.

    Yes, I use the correct variable for key server.
    I am not sure whats going on, but `curl` call takes about 800 msec which is OK, I guess.
    Also, I noticed that the time needed for license check increases with each check starting from around 2.5 seconds and increasing up to 3 seconds in almost non-decreasing fashion. I have no idea whats going on here.

    But anyway, I solved this issue simply by calling `CTXopenCPLEX` just once instead of doing it repeatedly for each problem that I solve. So instead of calling CTXopenCPLEX *and* CTXcreatProb many times, I call CTXopnCPLEX once and then CTXcreatProb many times.

    Again, thank you for your reply/ I will now close this thread.



    ------------------------------
    Jora Venediktov
    ------------------------------