Skip to main content

Limit core usage for Gurobi

Answered

Comments

3 comments

  • David Torres Sanchez
    Gurobi Staff Gurobi Staff

    Hi Yichen,

    I have created an internal ticket to fix this issue.

    Cheers, 
    David

    0
  • James Walsh

    I also have this issue with WLS license in WSL2 env, attempted on the optimiser object via pyomo:

    opt = SolverFactory(SET_SOLVER)
    opt.options["cores"] = 8
    opt.options["threads"] = 8
    results = opt.solve(model, tee=True)

    Results in

    gurobipy.GurobiError: Requested number of cores (10) is greater than allowed (8) cores
    1
  • David Torres Sanchez
    Gurobi Staff Gurobi Staff

    I'll create another ticket for you.
    Anyone else with this issue, please see How do I resolve an "ERROR 10009: License is for 8 cores, machine has XX"?

    Cheers, 
    David

    1

Please sign in to leave a comment.