### Comments

2 comments

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

Hi Eli,

Thank you for the nice simple solution!

Best,

Kamal

Please sign in to leave a comment.