Skip to main content

Is there a way to setup WLS license by using Gurobi parameters for GurobiOptimods?



1 comment

  • Riley Clement
    Gurobi Staff Gurobi Staff

    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


Please sign in to leave a comment.