Is there a way to setup WLS license by using Gurobi parameters for GurobiOptimods?
回答済みHello,
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
-
正式なコメント
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
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
投稿コメントは受け付けていません。
コメント
2件のコメント