I am using Gurobi to solve a fairly large MILP problem (19633 continuous and 8428 integer variables) written in Pyomo. When I run the model, Gurobi uses all available resources, for example, 12 out of 12 processors of a 6-cores CPU. I want Gurobi to use a specified number of processors, not the all available. I have tried by using SolverFactory("gurobi",Threads=1), but it did not work.
Please sign in to leave a comment.