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
------------------------------
Original Message:
Sent: Fri April 28, 2023 03:41 AM
From: Christophe Gefflot
Subject: License checking too frequently
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
------------------------------