Gurobi license: Problems with token server

473 views
Skip to first unread message

Lukas Weimann

unread,
Jan 20, 2021, 10:27:04 AM1/20/21
to YALMIP
Hello,

I've been using yalmip for Matlab with cplex and gurobi to solve MILPs on  private machines since 3 years now. (Thanks a lot for this invaluable toolbox you provided!)
Recently, I got access to a virtual machine on my university's server which uses a token server for the gurobi license.

As long as I run the optimization with default settings, everything works fine. However, as soon as I specify even a single parameter specific to gurobi I get the following error message: "Gurobi error 10003: Mixing different types of licence parameters is not allowed"

After some debugging, it seems to me that the default gurobi settings generated when specifying any gurobi parameter (function setup_gurobi_options in sdpsettings.m) overwrites the token server information. I tried to specify the token server property manually but it didn't solve the problem - probably because I didn't specify the port and password (because I don't know it).

I managed to solve it for now in a rather nasty way by commenting all server-related properties in setup_gurobi_options (sdpsettings.m, lines 805-831), but I think there should be a more elegant way.

Please let me know if there is any obvious mistake from my side; I never used a token server before and didn't find any specific information on setting up yalmip+gurobi with a token server.
If it is a bug however, I'd be happy to provide any additional information that might be helpful.

Version info: Gurobi 9.1.1, Matlab 2018a, latest distribution of yalmip (as far as I am aware - our IT guy did the installation)

Best wishes,
Lukas

Johan Löfberg

unread,
Jan 20, 2021, 10:38:13 AM1/20/21
to YALMIP
Hmm, ok. Not familiar with the setup, but good to know. Not sure what can be done and what you do sounds as good as you can do right now

n ansari

unread,
Apr 15, 2021, 8:09:20 AM4/15/21
to YALMIP
Same problem happened to me.  In your /path/to/YALMIP/extras/sdpsettings.m (lines 816-842 in latest YALMIP version).
Please comment out lines:
   
    gurobi.WorkerPassword = '';                                                                                        
   
    gurobi.WorkerPool = '';                                                                                            
   
    gurobi.CloudAccessID = '';                                                                                          
   
    gurobi.CloudHost = '';                                                                                              
   
    gurobi.CloudSecretKey = '';                                                                                        
   
    gurobi.CloudPool = '';                                                                                              
   
    gurobi.ComputeServer = '';                                                                                          
   
    gurobi.ServerPassword = '';                                                                                        
   
    gurobi.ServerTimeout = 60;                                                                                          
   
    gurobi.CSPriority = 0;                                                                                              
   
    gurobi.CSQueueTimeout = -1;                                                                                        
   
    gurobi.CSRouter = '';                                                                                              
   
    gurobi.CSGroup = '';                                                                                                
   
    gurobi.CSTLSInsecure = 0;                                                                                          
   
    gurobi.CSIdleTimeout = -1;                                                                                          
   
    gurobi.JobID = '';                                                                                                  
   
    gurobi.CSAPIAccessID = '';                                                                                          
   
    gurobi.CSAPISecret = '';                                                                                            
   
    gurobi.CSAppName = '';                                                                                              
   
    gurobi.CSAuthToken = '';                                                                                            
   
    gurobi.CSBatchMode = 0;                                                                                            
   
    gurobi.CSClientLog = 0;                                                                                            
   
    gurobi.CSManager = '';                                                                                              
   
    % gurobi.UserName = '';                                                                                            
   
    gurobi.ServerPassword = '';                                                                                        
   
    gurobi.TokenServer = '';                                                                                            

Behnam Akbari

unread,
Mar 26, 2022, 11:53:20 AM3/26/22
to YALMIP
The same issue here and the same solution as indicated above.

Johan Löfberg

unread,
Mar 26, 2022, 12:06:54 PM3/26/22
to YALMIP
fixed in develop already
Reply all
Reply to author
Forward
0 new messages