Skip to main content

How can limit 'Thread count' instead of using 'all available processors'?

Answered

Comments

2 comments

  • Eli Towle
    Gurobi Staff Gurobi Staff

    Hi Kamal,

    This can be done as follows:

    optimizer = SolverFactory('gurobi')
    optimizer.options['threads'] = 1

    For more information about passing options to solvers, see the Pyomo documentation on the topic. I hope this helps!

    Eli

    1
  • Kamal Chowdhury
    Gurobi-versary
    First Question
    First Comment

    Hi Eli,

    Thank you for the nice simple solution!

    Best,

    Kamal

    0

Please sign in to leave a comment.