Is there a way to setup WLS license by using Gurobi parameters for GurobiOptimods?
AnsweredHello,
I am trying to solve QUBO problems with GurobiOptimods using python. I have an academic license that is working, but is there a way to setup the WLS license like the way in this article (https://support.gurobi.com/hc/en-us/articles/13232844297489-How-do-I-set-up-a-Web-License-Service-WLS-license) using Gurobi parameters inside my python program?
Something like this:
import gurobipy as gp options = { "WLSACCESSID": "203dec48-e3f8-46ac-0184-92d7d6ded944", "WLSSECRET": "a080cce8-4e01-4e36-955e-61592c5630db", "LICENSEID": 12127, } with gp.Env(params=options) as env, gp.Model(env=env) as model: # Formulate problem model.optimize()
0
-
Hi Chu-Yuan Huang,
You may notice there is a solver_params keyword parameter in the API documentation for the solve_qubo function. All of the main optimod functions have this parameter and it allows the user to pass in their own parameters (which includes license parameters) via a dictionary. So for solve_qubo:
options = { "WLSACCESSID": "203dec48-e3f8-46ac-0184-92d7d6ded944", "WLSSECRET": "a080cce8-4e01-4e36-955e-61592c5630db", "LICENSEID": 12127, }
solve_qubo(Q, solver_params=options)- Riley
0
Please sign in to leave a comment.
Comments
1 comment